Debugging

Where are the cron logs?

Cron logs that a job started, not what the job printed. Where that log lives depends on your distro and whether rsyslog is installed. The job's own output is a separate thing: you have to send it to a file yourself.

Quick answer

SystemWhere to look
Ubuntu, Debian with rsysloggrep CRON /var/log/syslog
Debian 12 and later (no rsyslog by default)journalctl -u cron
Fedora, RHEL, Rocky, Alma, Amazon Linux/var/log/cron (with rsyslog) or journalctl -u crond
Archjournalctl -u cronie

Any systemd-based system works with the journal, whether or not rsyslog is installed:

journalctl -u cron --since "1 hour ago"     # Debian / Ubuntu
journalctl -u crond --since today           # Fedora / RHEL
journalctl -u cron -f                       # follow live

What a cron log line looks like

Nov 19 02:30:01 web1 CRON[2395]: (root) CMD (/usr/local/bin/backup.sh)

That says root's job started at 02:30. If you see the CMD line but the job didn't do its work, cron did its part: the problem is inside the job (PATH, permissions, a missing file). If there's no CMD line at all, cron never started it: check the schedule, and that the cron service is running (systemctl status cron).

Ubuntu: get a separate /var/log/cron.log

Ubuntu's rsyslog writes cron messages into /var/log/syslog along with everything else. Its default rules file already contains a cron-only rule, commented out. Turn it on:

sudo sed -i 's/^#cron\.\*/cron.*/' /etc/rsyslog.d/50-default.conf
grep '^cron' /etc/rsyslog.d/50-default.conf     # should print: cron.*   /var/log/cron.log
sudo systemctl restart rsyslog

New cron messages now also go to /var/log/cron.log.

Debian 12 and later

Since Debian 12 (bookworm), rsyslog isn't installed by default, so there's no /var/log/syslog unless you add it. Use journalctl -u cron, or install rsyslog (sudo apt install rsyslog) if you prefer text log files.

Fedora, RHEL and Amazon Linux

Where rsyslog is installed, Fedora's default /etc/rsyslog.conf sends all cron messages to /var/log/cron (rule cron.* /var/log/cron):

sudo tail -f /var/log/cron

Without rsyslog, use journalctl -u crond.

Log more: end of job and failures (Debian, Ubuntu)

By default Debian's cron logs only the start of each job. Its -L option adds more. Set it in /etc/default/cron:

# 1 = job start, 2 = job end, 4 = jobs that exit non-zero, 8 = process ID; add them up
EXTRA_OPTS="-L 5"     # starts + failed jobs
sudo systemctl restart cron

Logging what the job printed

Cron does not write a job's output to any log. It emails it to the crontab's owner, and with no mail program installed it's dropped (that's the "No MTA installed, discarding output" message). Redirect the output yourself:

30 2 * * * /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1

>> appends standard output, and 2>&1 sends errors to the same file. The user the job runs as must be able to write there. To put a date in the file name, escape the % signs, because cron turns a bare % into a newline:

30 2 * * * /usr/local/bin/backup.sh >> /var/log/backup-$(date +\%F).log 2>&1

macOS

A Mac doesn't keep a simple text cron log. Redirect each job's output to a file as shown above. More in crontab on Mac.

Still nothing? Check the job is where you think it is (list every cron job), work through why isn't my cron job running, or paste your crontab into the crontab checker.

Sources

Checked against these official manuals and source code. Last verified 18 November 2026.