Back to blog

Reference · April 6, 2026

Where are cron logs stored? Ubuntu, Debian & RHEL paths

Cron hands its lines to the system logger, so the path depends on your distro: /var/log/syslog, /var/log/cron, /var/log/messages or only the journal. Pick your system, copy the commands, and find out where the job's own output went.
crontap.com / blog
Yellow log lines with a cyan magnifying glass on a deep teal background.

The nightly report didn't arrive, you SSH into the box, and ls /var/log/cron* comes back empty. So where did cron write down what happened at 02:00? The short answer is that cron never had a log file of its own. It hands one line per job to the system logger, and whatever logger your distro runs (journald, rsyslog, BusyBox syslogd, Apple's unified log) decides where that line ends up.

That is why the path changes between an Ubuntu server, a fresh Debian install, a Rocky box and an Alpine container. Below is the path for each one (checked against the distro docs and man pages in November 2026), a finder that hands you the exact commands for your system, and what to do when the line you need isn't there.

If you are mid-incident and the job plainly didn't run, the cron job not running checklist is the faster read. For every other failure mode, start at the cron troubleshooting hub.

Find your cron logs: pick your system

Choose where the job runs and type its command the way it appears in the crontab. The finder fills in the commands to copy, shows the lines you should expect to see, and tells you where the job's own output went, which is rarely the same place.

Cron log finder

checked against distro docs, Nov 2026

Daemon
cron (Debian's Vixie cron), unit cron.service
Its lines go to
/var/log/syslog (Server ships rsyslog) and the journal
Job output goes to
Mailed to the crontab owner or MAILTO. With no mail transport installed, cron drops it and logs one line saying so.
  1. 1Is cron running?

    systemctl status cron --no-pager
  2. 2Today's runs

    journalctl -u cron.service --since today
  3. 3Follow live

    journalctl -f -u cron.service
  4. 4Just this job

    journalctl -u cron.service --since today | grep -F '(root) CMD (/opt/jobs/sync.sh'

    No closing parenthesis, so redirects after the command still match.

  5. 5From the text file

    grep -F '(root) CMD (/opt/jobs/sync.sh' /var/log/syslog | tail -20

What you will see

  • Nov 19 02:00:01 web-1 CRON[48211]: (root) CMD (/opt/jobs/sync.sh)

    cron started the job. By default this is the only line you get.

  • Nov 19 02:00:04 web-1 CRON[48210]: (CRON) info (No MTA installed, discarding output)

    The job printed something and there was nothing to mail it with.

  • Want cron in a file of its own? Uncomment #cron.* /var/log/cron.log in /etc/rsyslog.d/50-default.conf and restart rsyslog.
  • Only starts are logged. EXTRA_OPTS="-L 7" in /etc/default/cron adds job ends and failed exit codes.
Source: Ubuntu 26.04.1 server manifest

journalctl shows only your own entries unless you run it as root or as a member of the systemd-journal, adm or wheel group.

Commands and line formats come from each distro's docs, man pages and the cron daemons' source, as of November 2026. Hosts, PIDs and output are made up.

Cron doesn't write a log file, your logger does

Every classic cron daemon logs through syslog with the cron facility. As the Debian cron manual puts it, cron "logs its action to the syslog facility 'cron'". From there it is the logger's call: journald keeps it in its binary journal, rsyslog may copy it into /var/log/syslog or /var/log/cron, and a container with no logger simply drops it.

What lands is one line per job start. Here is a typical one, taken apart:

Anatomy of a cron log line

Nov 19 02:00:011 web-12 CRON[48211]:3 (deploy)4 CMD5 (/opt/jobs/sync.sh >> /var/log/sync.log 2>&1)6
  1. WhenServer time, as the logger stamps it.
  2. HostMatters once logs are shipped off the box.
  3. Who logged itCRON on Debian and Ubuntu, CROND on cronie, then the PID.
  4. Crontab userThe account the job ran as. Filter on it.
  5. EventCMD is the start. END, CMDEND and CMDOUT appear only where enabled.
  6. CommandExactly as written in the crontab, redirects included.
Not in the line:exit codeoutputduration

Read that line as "cron tried to start this command as this user at this time". It says nothing about whether the command worked. For that you need the job's output (more on that further down) or a cron that logs job endings, which Debian's can do with one setting.

Debian and Ubuntu: the journal first, /var/log/syslog if rsyslog is there

This is where most people get tripped up, because two closely related distros made different choices. Fresh Debian installs have been journal-first since Debian 12: the Bookworm release notes say rsyslog "is no longer installed by default", and Debian 13 installs without it too. Ubuntu Server still ships it: rsyslog is in both the 24.04.5 and 26.04.1 server manifests.

The journal command works on both, so start there:

journalctl -u cron.service --since today

On Ubuntu, or any Debian host that has rsyslog, the same lines are in the text file too:

grep CRON /var/log/syslog | tail -50

Ubuntu's rsyslog rules ship with a dedicated cron file switched off. If you want one, uncomment #cron.* /var/log/cron.log in /etc/rsyslog.d/50-default.conf and run sudo systemctl restart rsyslog. Minimal and cloud images can leave rsyslog out entirely, and an upgraded Debian host may still have it, so check before you trust either path.

Make Debian's cron log job endings and failed exit codes

Out of the box, Debian and Ubuntu's cron logs only the start of each job (-L 1). The manual lists three more levels you can add together: 2 logs the end of every job, 4 logs jobs that exit non-zero, and 8 adds the PID to each line. -L 7 gives you starts, ends and failures without changing the line format.

  1. 1

    Set the log level

    Add EXTRA_OPTS="-L 7" to /etc/default/cron. The cron.service unit reads that file and passes $EXTRA_OPTS to the daemon.

  2. 2

    Restart cron

    Run sudo systemctl restart cron. Crontabs are not touched, and the next run picks up the new level.

  3. 3

    Look for the new lines

    After the next run, journalctl -u cron.service --since today shows an END line per job, and a failed one adds (CRON) error (grandchild #48211 failed with exit status 1).

RHEL, Rocky, AlmaLinux and Fedora: /var/log/cron or the crond journal

The RHEL family runs cronie, and its stock rsyslog config sends the whole cron facility to its own file with this rule:

cron.*    /var/log/cron

Red Hat's log files guide for RHEL 9 lists /var/log/cron for periodically executed tasks, and Rocky, AlmaLinux and CentOS Stream inherit the same layout. Follow it live with:

sudo tail -F /var/log/cron

cronie writes a little more than Debian's cron. Job lines come from CROND (the daemon's own lines from crond), each job gets a CMDEND line when it finishes, and if the host has no /usr/sbin/sendmail cronie switches to logging the job's output as CMDOUT lines (cronie source). It still doesn't log the exit code. How far back the file goes is up to logrotate, so check /etc/logrotate.d/ before assuming last month is there.

Fedora is the exception in the family. It stopped installing a syslog daemon by default back in Fedora 20, so there is no /var/log/cron and you read the unit instead: journalctl -u crond.service. Arch uses cronie as well, but packages the unit as cronie.service.

Alpine and BusyBox: /var/log/messages, or stderr

Alpine runs BusyBox crond under OpenRC rather than a Vixie-style cron. When the syslog service is running, cron lines land in /var/log/messages:

grep crond /var/log/messages

At its default level 8, BusyBox logs one line per job in its own format, USER root pid 4821 cmd /opt/jobs/sync.sh. If syslogd was started with -C it keeps a memory buffer instead of a file, and logread | grep crond reads it.

If syslog is unavailable (common in minimal containers), the default syslog destination has no receiver. Start crond in the foreground and choose an explicit destination. The BusyBox crond options distinguish -d N, which sets the log level and writes to stderr, from -L FILE, which writes to a named file. A common container command is:

CMD ["crond", "-f", "-d", "8"]

The -d 8 option writes level-8 logging to stderr; Docker captures it for docker logs <container>. Use -L /path/to/file instead when you intentionally want a file.

Docker: no syslog, so send everything to PID 1

A Debian- or Ubuntu-based image usually runs cron -f as its main process and no syslog daemon at all. Cron's CMD lines have nowhere to go, and with no mail transport the job's output is discarded too. The fix is to point each job at the container's own stdout and stderr, which belong to PID 1:

# /etc/cron.d/sync
* * * * * root /opt/jobs/sync.sh > /proc/1/fd/1 2>/proc/1/fd/2

Now docker logs -f <container> shows the job's output as it runs, and docker logs --since 1h -t <container> adds timestamps (docker logs reference). The Docker cron jobs guide covers the rest: environment variables cron doesn't see, PID 1 signals, and when a separate scheduler container makes more sense.

macOS: the unified log and your local mailbox

macOS still ships cron, and launchd (com.vix.cron) starts it as soon as a crontab exists. Since the unified logging system arrived in macOS Sierra, cron's lines go there, and you query them with a predicate:

/usr/bin/log show --predicate 'process == "cron"' --last 1h

Use the full path. In zsh, the default macOS shell, log is a builtin, and a bare log show ... fails with too many arguments. /usr/bin/log stream with the same predicate follows new lines live.

The job's output isn't in the unified log. cron mails it to the crontab owner, which on a Mac means the local mailbox at /var/mail/<your user>, one message per run with a subject like Cron <you@your-mac> /opt/jobs/sync.sh. And if a job reads or writes Desktop, Documents or an external disk, expect Operation not permitted until /usr/sbin/cron gets Full Disk Access in System Settings. For anything tied to your login session, a launchd agent is the better tool.

systemd timers and the journal on any distro

On any systemd host, the journal holds cron's lines under the unit that owns the daemon. That is cron.service on Debian and Ubuntu, crond.service on the RHEL family and Fedora, and cronie.service on Arch. If you are not sure, list them:

systemctl list-unit-files | grep -E 'cron(d|ie)?\.service'

The journalctl manual has the filters worth knowing: -u for a unit, -t for a syslog identifier (CRON or CROND for job lines), --since "1 hour ago" to narrow the window, and -f to follow. Unless you are root or in the systemd-journal, adm or wheel group, journalctl shows only your own entries, which looks a lot like "cron logged nothing".

If your team moved jobs to systemd timers, read the service, not the timer. journalctl -u nightly-sync.service holds the job's stdout and stderr plus systemd's own Main process exited, code=exited, status=1/FAILURE line, so timers give you exit codes cron never logged. systemctl list-timers --all shows when each one last ran and runs next (systemd.timer).

Where the job's own output went

Classic cron mails anything a job prints to stdout or stderr. The crontab manual spells out the rules: with MAILTO set it goes to that address, with MAILTO="" no mail is sent, and otherwise it goes to the crontab owner. On a server with no mail transport, Debian's cron discards it and leaves a single (CRON) info (No MTA installed, discarding output) line, while cronie logs it as CMDOUT and BusyBox only mails when the crontab sets MAILTO.

If you want output you can read later, decide where it goes in the crontab line itself. A file works:

0 2 * * * /opt/jobs/sync.sh >> /var/log/sync.log 2>&1

Piping through logger with a tag works better on a journald host, because one command then pulls up just that job:

0 2 * * * /opt/jobs/sync.sh 2>&1 | logger -t nightly-sync
journalctl -t nightly-sync --since today

The cron log is silent at the minute you expected

If grep CRON /var/log/syslog (or the distro equivalent) shows nothing at the expected minute, that alone does not prove the daemon skipped the job. The host may use the journal, the unit or tag may differ, rsyslog routing may have changed, or retention may have removed the entry. After checking the right source, investigate these common causes:

  1. The cron daemon isn't running. systemctl status cron or systemctl status crond tells you, and so does the first command in the finder.
  2. The entry is in another user's crontab, or in /etc/cron.d, so a filter on the wrong user hides the line that is there.
  3. The schedule is not what you think. Paste it into the free cron expression debugger and compare the next runs with the minute you expected.
  4. The server's clock or timezone is off. timedatectl shows both, and cron runs on the server's local time.

A silent log is the hardest failure to notice, because nothing happens. Nobody greps for a run that never started until someone asks where the report is. The 8-step checklist walks through the rest.

The log says it ran, but nothing happened

A CMD line proves cron started the command. It doesn't prove the command did its work. These are the usual suspects:

  1. The job exited 0 without doing anything. A missing environment variable, an empty database URL or a feature flag turned the code path off. Add env > /tmp/cron-env.txt to the job once and diff it against your shell's env.
  2. The output was mailed, dropped or sent to /dev/null. Remove the suppressing redirect while you debug and send output somewhere you can read, as above.
  3. Cron used a different shell. Crontabs run with /bin/sh, which is dash on Debian and Ubuntu and has no bashisms. Set SHELL=/bin/bash at the top of the crontab if the script needs bash.

For the difference between "it didn't run" and "it ran but failed" and which kind of check catches each, see heartbeats vs uptime monitors.

Stop reading logs to find out a job failed

Cron logs are fine for one incident. If you find yourself in /var/log/cron more than once a month, the log is doing a job it was never built for: telling you a run failed, after the fact, only when you go and look.

When the job is really an HTTP call (a curl to your own endpoint), Crontap can make the request instead. Crontap run history records status, HTTP status code, duration, response size, error summary, and each retry attempt. It does not store response bodies. Server errors, timeouts and network failures are retried with exponential backoff by default, and you search the dashboard instead of grep. Failure email is available on every plan once the retries are used up. Slack, Discord, and Telegram notification channels are available on paid plans.

The free Starter plan covers 2 schedules, uptime monitors or heartbeats combined, with schedules as often as hourly. Pro goes down to one run a minute. For background on the cron model itself, the cron jobs in Linux guide is the pillar reference.

FAQ

Cron log questions

Where are cron logs stored on Ubuntu 24.04 and 26.04?
Default Ubuntu Server installs of 24.04 and 26.04 include rsyslog (checked against the release manifests in November 2026), so cron's lines go to /var/log/syslog as well as the journal. Read them with grep CRON /var/log/syslog or journalctl -u cron.service. Minimal and cloud images can leave rsyslog out, in which case the journal is the only copy.
Where are cron logs stored on Debian 12 and 13?
Fresh Debian installs since 12 (Bookworm) do not include rsyslog, so cron's lines live only in the journal: run journalctl -u cron.service. Hosts upgraded from older releases, or with rsyslog installed by hand, also have /var/log/syslog.
Where are cron logs on RHEL, Rocky, AlmaLinux, CentOS, and Fedora?
RHEL and its rebuilds (Rocky, AlmaLinux, CentOS Stream) write cron's lines to /var/log/cron through rsyslog's stock cron.* rule. Fedora has not installed rsyslog by default since Fedora 20, so read the journal there with journalctl -u crond.service.
Why is the cron log file missing or empty?
Usually because the host is journal-only and nothing writes a text file, or because the rsyslog rules send cron somewhere else. Check that the daemon runs (systemctl status cron or crond), then read its journal unit. In a container there is often no syslog daemon at all, so cron's own lines go nowhere.
How do I view cron logs live?
Use journalctl -f -u cron.service on Debian or Ubuntu, journalctl -f -u crond.service on RHEL-family systems, or journalctl -f -u cronie.service on Arch. For text files, tail -F /var/log/syslog or tail -F /var/log/cron. In Docker, docker logs -f followed by the container name.
Do cron logs include job output, errors, and the exit status?
Not by default. Debian's cron logs only that a job started, unless you add -L 7 to EXTRA_OPTS in /etc/default/cron to log job ends and non-zero exit codes. cronie logs CMD and CMDEND lines without the exit code, and writes output to the log as CMDOUT only when no sendmail is installed. Otherwise output is mailed to the crontab owner or MAILTO, so redirect it to a file or to logger if you want to keep it.
How do I filter logs for one cron job or user?
Use journalctl -u cron.service --since today | grep -F '(deploy) CMD (/opt/jobs/sync.sh)' to match one user and command, replacing the user, path, and unit for your system. For cleaner filtering, pipe job output through logger with a unique tag and query that tag with journalctl -t.
Where are cron logs in a Docker container?
Most images run no syslog daemon, so Debian cron's own lines are lost and job output is discarded. Redirect each job to /proc/1/fd/1 and /proc/1/fd/2 so it reaches docker logs, or on Alpine run BusyBox crond in the foreground with crond -f -d 8, which writes its log lines to stderr.
Where are cron logs on macOS?
cron logs to the unified log: run /usr/bin/log show --predicate 'process == "cron"' --last 1h (the full path matters in zsh, where log is a builtin). Job output is mailed to the local mailbox in /var/mail/ followed by your user name.
How long are cron logs kept?
It is local policy, not a cron setting. Text files such as /var/log/syslog and /var/log/cron are rotated by logrotate (see /etc/logrotate.d/), and the journal is capped by the size and age limits in journald.conf. Run journalctl --disk-usage and journalctl --list-boots to see how far back yours goes.

Stop grepping for missing runs

Let the 02:00 job tell you when it doesn't run.

Keep the crontab and add one curl to the heartbeat URL after the job's last command. Give it a one-day period and an hour of grace: if the ping doesn't arrive, Crontap marks it down and alerts you by email, or Slack, Discord and Telegram on paid plans, before anyone opens /var/log/syslog.

Free for one heartbeat, hourly or slower. No card.

nightly-sync
Up

ping.crontap.com/YOUR-TOKEN

Period 1 dayGrace 1 h

Next ping expected in ...

Pings

Last 30 days

From the blog

Read the blog

Guides, patterns and product updates.

Tutorials on scheduling API calls, webhooks and automations, plus deep dives into cron syntax, timezones and reliability.

Product

Introducing Crontap status pages

Publish uptime monitors and heartbeats on a public page at crontap.page, pick a template from Clean to a split-flap departures board, and add incidents, maintenance and a badge.

Product

Slack, Discord and Telegram alerts are here

Connect a chat channel once, then route schedule, uptime and heartbeat alerts with defaults, per-job overrides and test sends. See what each alert looks like in Slack, Discord, Telegram and email.

Product Updates

Introducing AI Integrations

Transform a schedule's HTTP response with a plain-English prompt, return text or JSON, and forward it to Slack, Make, n8n, or your own endpoint. Test on any tier; saving is a Pro feature.