Published October 21, 2026
Where Are Cron Logs? Find Cron Job Output
Two different things get called "the cron log". One is the daemon's log: a line saying a job started, written by cron itself. The other is the job's output: what your script printed to stdout and stderr. Cron keeps the first in the system log. It keeps the second nowhere unless you tell it to.
This page is where each one lives on common systems, how to keep job output with timestamps and rotation, and what no log can show you: a run that never happened. If a job is not running at all, start with crontab not running. The heartbeat pattern is how to monitor cron jobs.
The daemon log: did cron start the job?
The daemon logs one line per job start. It does not log what the job printed, and by default it does not log whether the job succeeded.
Debian and Ubuntu
Debian's cron logs to syslog under the CRON tag. If rsyslog is installed, the lines are in /var/log/syslog:
grep CRON /var/log/syslog
A start looks like CRON[41231]: (deploy) CMD (/usr/local/bin/backup.sh). The user in parentheses is the crontab owner, and CMD is the command as cron ran it.
Newer Debian installs do not ship rsyslog, so there is no /var/log/syslog. Ask journald instead. The unit is cron:
journalctl -u cron --since today
journalctl -u cron -f # follow new lines
Ubuntu's rsyslog config has a commented-out cron.* line in /etc/rsyslog.d/50-default.conf. Uncommenting it and restarting rsyslog gives cron its own /var/log/cron.log.
Debian's cron only logs job starts by default. Its -L option adds more: 1 logs starts, 2 logs ends, 4 logs jobs that exit non-zero, and 8 logs PIDs. The values add up, so -L 15 logs all four. On Debian the service reads EXTRA_OPTS from /etc/default/cron. Check man cron on your release before relying on it.
RHEL, Fedora, Rocky, Alma (cronie)
cronie's daemon is crond. With rsyslog, cron messages go to /var/log/cron:
sudo tail -f /var/log/cron
journalctl -u crond --since today
Job starts are tagged CROND, for example CROND[2210]: (deploy) CMD (/usr/local/bin/backup.sh).
Alpine and BusyBox crond
BusyBox crond logs to syslog by default. -L file sends its log to a file instead, and -l N sets the level, where lower numbers are more verbose. In a container with no syslog daemon, run it in the foreground and send the log to stderr with -d N if your build lists it in crond --help. Those flags, and why cron in a container is often silent, are in monitor cron jobs in Docker.
systemd timers
A systemd timer has no separate cron log. The service it starts writes to the journal, output included:
systemctl list-timers --all
journalctl -u backup.service --since yesterday
list-timers shows the last and next trigger. The service's journal has the job's own stdout and stderr. The ping for a timer is in systemd timers.
Where job output goes by default
Cron collects what a job writes to stdout and stderr and mails it to the crontab owner. MAILTO at the top of the crontab changes the recipient:
MAILTO=ops@example.com
0 3 * * * /usr/local/bin/backup.sh
MAILTO="" turns the mail off. Without a working mail transfer agent on the machine, the mail goes nowhere. Debian's cron logs (CRON) info (No MTA installed, discarding output) in that case, and the output is gone.
Mail also only arrives when the job printed something. A job that fails quietly, with an exit code and no output, sends nothing.
Keep the output yourself
Redirect, in the right order
0 3 * * * /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1
>> appends instead of overwriting each run. 2>&1 sends stderr to the same place as stdout. The order matters. Redirections are applied left to right, so 2>&1 >> file points stderr at the old stdout first, which under cron is the mail, and only stdout reaches the file. Errors are usually the part you wanted.
The user that owns the crontab has to be able to write the log file. A root-owned file in /var/log fails silently for a user crontab.
Add timestamps with a wrapper
Cron's % is special in a crontab line. It ends the command and turns the rest into stdin, so date +%F in a crontab line breaks unless every % is escaped as \%. A small wrapper script avoids that and gives each run a header and a footer:
#!/usr/bin/env bash
# /usr/local/bin/backup-logged
set -uo pipefail
LOG=/var/log/backup.log
{
echo "=== $(date -Is) start"
/usr/local/bin/backup.sh
status=$?
echo "=== $(date -Is) exit $status"
} >> "$LOG" 2>&1
exit "$status"
The braces run in the same shell, so status is still set after them. The crontab line becomes 0 3 * * * /usr/local/bin/backup-logged.
To timestamp every line, ts from the moreutils package prefixes each line it reads. In a pipe, the exit code is ts's unless pipefail is set, which is one more reason to keep this in a bash script:
set -o pipefail
/usr/local/bin/backup.sh 2>&1 | ts '[%Y-%m-%d %H:%M:%S]' >> /var/log/backup.log
Send it to syslog or the journal with logger
logger writes its input to the system log under a tag, next to cron's own lines:
set -o pipefail
/usr/local/bin/backup.sh 2>&1 | logger -t backup
Read it back with journalctl -t backup or grep backup /var/log/syslog. The system log is already rotated, so there is no log file of your own to manage.
Rotate the log files
A >> log grows forever. logrotate handles it. Put this in /etc/logrotate.d/backup:
/var/log/backup.log {
weekly
rotate 8
compress
delaycompress
missingok
notifempty
}
Without copytruncate, logrotate renames the file and the next cron run's >> creates a new one. That is the right choice for cron, because each run opens the file fresh. copytruncate copies the file and then empties it in place. It exists for long-running processes that keep the file open, and lines written between the copy and the truncate are lost. Add create 0640 deploy deploy if a user crontab needs the new file to exist with its owner before the job runs.
What a log cannot tell you
Every line above is written by something that ran. If cron never started the job, there is no CMD line and no output. That happens when the daemon is stopped, the crontab was replaced, the host is off, or the schedule is not what you think. Check the schedule with the cron expression tool.
Even when the line is there, someone has to read it. Logs on the machine that failed are also on the machine you cannot reach. And a log full of normal-looking runs does not say the last one finished.
A heartbeat check covers the gap from outside. The job pings a URL when it finishes. If the ping is late, the check alerts.
Add a ping next to the log
Append the ping to the wrapper, after the output is logged:
#!/usr/bin/env bash
set -uo pipefail
LOG=/var/log/backup.log
PING_URL="https://cronnudge.com/ping/<check-id>"
{
echo "=== $(date -Is) start"
/usr/local/bin/backup.sh
status=$?
echo "=== $(date -Is) exit $status"
} >> "$LOG" 2>&1
curl -fsS -m 10 --retry 3 "$PING_URL?exit=$status" > /dev/null
exit "$status"
A non-zero ?exit= on the success URL is a failure, so the log keeps the detail and the check gets the result. $PING_URL/fail from an error path alerts right away. A run that never starts sends nothing, and the check goes down when its grace period ends. CronNudge sends one alert when a check goes down and one when it recovers.
With run tracking on, ping $PING_URL/start before the job, and a run that starts but never finishes shows up as stuck after its max runtime. Run tracking, assertions, and the other signals are in assertions, runs, and agents. Free covers 10 checks with a 5-minute minimum interval. Pro is $12 a month for 100 checks and a 1-minute minimum. Details are on pricing.
FAQ
Where are cron logs on Ubuntu? With rsyslog, cron's lines are in /var/log/syslog. Run grep CRON /var/log/syslog. Without rsyslog, use journalctl -u cron. Uncommenting the cron.* line in /etc/rsyslog.d/50-default.conf gives cron its own /var/log/cron.log.
Where are cron logs on RHEL, Rocky, or Fedora? cronie's daemon is crond. With rsyslog, its lines are in /var/log/cron. journalctl -u crond works on any systemd host. Job starts are tagged CROND.
Why is my cron job output not in any log? Cron mails job output to the crontab owner or MAILTO. It does not write it to a log. Without a mail transfer agent the output is discarded. Redirect it yourself with >> /path/to/log 2>&1, or pipe it to logger.
Why does 2>&1 >> file miss the errors? Redirections apply left to right. 2>&1 first points stderr at the current stdout, which under cron is the mail. Then >> file moves only stdout. Write >> file 2>&1 instead.
Does the cron log show whether a job failed? Not by default. Debian's cron and cronie log the start of each job. Debian's cron can also log ends and non-zero exits with its -L option. A job that never started has no line at all, which is why a heartbeat ping is the reliable signal.
Should I use copytruncate in logrotate for cron logs? Usually not. Each cron run opens the log fresh with >>, so the default rename-and-create works. copytruncate is for processes that hold the file open, and it can lose lines written during the copy.
The log tells you what happened in the runs that happened. The ping tells you when one did not. Create the check, or read crontab not running if the daemon log has no line for your job. Related: cron in Docker, Slack and Discord alerts for failed cron jobs, and systemd timers.