Where Are Cron Logs? How to Find and Read Them on Linux and FreeBSD
On Debian and Ubuntu, read cron logs with sudo journalctl -u cron.service (or /var/log/syslog with rsyslog). On Fedora and RHEL-family Linux, run sudo journalctl -u crond.service or check /var/log/cron. On FreeBSD, read /var/log/cron as root. None of these logs store your script's stdout, stderr, or exit code.
Commands below were checked on Debian 13, Ubuntu 24.04 LTS, Fedora 44 (Cronie), and FreeBSD (15.1-RELEASE manuals and 16.0-CURRENT).
Cron log locations by operating system
Scroll horizontally to see all columns.
| System | Default location | Command |
|---|---|---|
| Debian, Ubuntu | systemd journal (and /var/log/syslog with rsyslog) | sudo journalctl -u cron.service |
| Fedora, RHEL, Rocky, Alma (Cronie) | systemd journal (and /var/log/cron with rsyslog) | sudo journalctl -u crond.service |
| FreeBSD | /var/log/cron | tail -n 200 /var/log/cron (as root) |
| Any systemd host by syslog facility | syslog cron facility (9) | sudo journalctl SYSLOG_FACILITY=9 |
What cron logs and what it leaves out
Cron writes scheduled command runs, crontab edits, and mail warnings to syslog.
Each time a schedule comes due, cron logs a CMD line:
CRON[4266]: (reports) CMD (/srv/reports/bin/export)
That line means cron started /bin/sh to run /srv/reports/bin/export as reports. Cron writes CMD as it spawns the job. The same line appears even when the script is missing, not executable, or exits 1 right away.
The crontab command also logs who listed or replaced a user table:
crontab[5120]: (reports) REPLACE (reports)
crontab[5121]: (reports) LIST (reports)
On Debian and Ubuntu, cron logs a mail warning when a job prints output and no local mail transfer agent (MTA) is installed:
CRON[4266]: (CRON) info (No MTA installed, discarding output)
That warning means the job wrote to stdout or stderr and cron had nowhere to send it.
Cron does not record your script's stdout, stderr, or exit status. Redirect output to a rotated file or use an exit-status wrapper instead; see the cron job not running guide.
Check cron logs on Debian and Ubuntu
Query cron.service in the systemd journal around the expected run time:
sudo journalctl -u cron.service --since "2026-08-08 01:55" \
--until "2026-08-08 02:30" --no-pager
Relative times are handy for recent runs:
sudo journalctl -u cron.service --since "2 hours ago" --no-pager
When rsyslog is installed (default on Ubuntu Server images, optional on minimal Debian), cron also writes to /var/log/syslog:
grep CRON /var/log/syslog
Debian and Ubuntu do not create /var/log/cron.log by default. If -u cron.service misses child entries on a custom syslog setup, query syslog facility 9:
sudo journalctl SYSLOG_FACILITY=9 --since "2 hours ago" --no-pager
Check cron logs on Fedora and RHEL-family Linux
Fedora, RHEL, AlmaLinux, and Rocky Linux ship Cronie. Its service unit is crond.service:
sudo journalctl -u crond.service --since "2026-08-08 01:55" \
--until "2026-08-08 02:30" --no-pager
Default Fedora installs use journald only, so /var/log/cron is absent unless rsyslog was added. RHEL, AlmaLinux, and Rocky Linux hosts with rsyslog write to both journald and /var/log/cron.
Check cron logs on FreeBSD
FreeBSD's default /etc/syslog.conf sends cron.* to /var/log/cron. Read it from a root shell:
tail -n 200 /var/log/cron
grep reports /var/log/cron
On FreeBSD:
newsyslogrotates/var/log/croninto compressed files like/var/log/cron.0.bz2per/etc/newsyslog.conf. Search older archives withbzgrep reports /var/log/cron.*.bz2.- Prefixing a crontab line with
-qsuppresses itsCMDlog entry while still running the job. - Rules in
/etc/syslog.conf,/etc/syslog.d/, or/usr/local/etc/syslog.d/can routecron.*elsewhere.
Where job output goes (MAILTO)
Cron pipes stdout and stderr into the local sendmail command. It sends the message to the crontab's MAILTO address, or to the job's Unix user when MAILTO is unset.
- If a local MTA is installed, check
/var/mail/<user>or runmailas that user. - If no MTA is installed, cron discards the output. Debian and Ubuntu log
No MTA installed, discarding output.
To save output to a file instead, redirect stdout and stderr in the crontab entry:
17 2 * * * /srv/reports/bin/export >> /srv/reports/log/export.log 2>&1
Rotate /srv/reports/log/export.log with logrotate (Linux) or newsyslog (FreeBSD) so logs do not fill the disk. Set MAILTO="" at the top of the crontab to skip local mail while keeping file redirects; see the cron environment variables guide.
When the cron log is empty
Before concluding that cron skipped your job, check:
- Log retention: run
sudo journalctl -u cron.service | head -n 5(or check/var/log/cron.*dates) to confirm the log still covers that hour. - Syslog routing: run
sudo journalctl SYSLOG_FACILITY=9on Linux or checksyslog.confon FreeBSD. - Permissions: without
sudo(or membership inadmorsystemd-journal),journalctlhides system messages, prints aHint:on stderr, and exits1withNo journal files were opened due to insufficient permissions(or prints-- No entries --if only your user journal was readable). - Quiet flags: on FreeBSD, check whether the crontab line starts with
-q.
If the log covers that window and still has no CMD entry, cron did not start the job. Follow Step 2 of the cron debugging guide to check daemon status, crontab permissions, and host timezone.
Get alerted when a cron job misses a run
You usually read journalctl or /var/log/cron only after someone notices a missing report or stale backup. A powered-off VM, a wiped crontab, or a hung script writes nothing at 02:00.
Have important cron jobs send an outbound HTTP ping to Watchgoose when they finish. If no success ping arrives within the job's schedule plus grace time, Watchgoose marks the check Down and alerts your notification channels. You can also attach up to 10 kB of output in an HTTP POST ping (see Attaching logs) so the failure tail is waiting in Watchgoose.
Frequently asked questions
How do I enable a dedicated /var/log/cron.log file on Ubuntu or Debian?
Install rsyslog if needed. Uncomment cron.* /var/log/cron.log in /etc/rsyslog.d/50-default.conf (Ubuntu) or /etc/rsyslog.conf (Debian), then run sudo systemctl restart rsyslog.service. New cron entries will write to /var/log/cron.log as well as the journal.
How do I watch cron logs live in real time?
Run sudo journalctl -u cron.service -f on Debian and Ubuntu, or sudo journalctl -u crond.service -f on Fedora and RHEL-family Linux. On FreeBSD, run tail -f /var/log/cron from a root shell.
Why does journalctl -u cron.service show a permission error or "No entries"?
Without sudo (or adm / systemd-journal group membership), journalctl cannot open system journal files. It prints a Hint: on stderr and either fails with No journal files were opened due to insufficient permissions or shows -- No entries -- from your own user journal. With sudo, check whether you are on Fedora or RHEL (crond.service instead of cron.service) or try sudo journalctl SYSLOG_FACILITY=9.
Where do /etc/cron.daily and /etc/cron.hourly log their runs?
They write to the same cron log (journalctl or /var/log/cron) when run-parts starts them. On hosts with anacron installed, daily, weekly, and monthly directories are often run by anacron instead. Check grep -i anacron /var/log/syslog or sudo journalctl -u anacron.service.
How long are cron logs kept before rotation deletes them?
systemd-journald rotates by size and age set in /etc/systemd/journald.conf (and clears logs on reboot if /var/log/journal is absent). logrotate on Debian and Ubuntu usually keeps four weekly syslog files. FreeBSD's /etc/newsyslog.conf rotates /var/log/cron at 100 KB and keeps three .bz2 archives by default.