The best log analysis fails if logrotate ate last month's data first.
🔗 logrotate man page — rotate, compress, dateext. Set dateext so files are access.log-20240115 not .1, .2 — far easier to script against.
🔗 DigitalOcean's logrotate tutorial — the cleanest walkthrough of a custom config and testing with logrotate -d (debug, no changes).
★ Pick of the week — Will Critchlow on keeping 90+ days of logs for SEO — argues crawl patterns only reveal themselves over months; default 7-day retention blinds you to seasonal bot behavior.
🔗 GoAccess persistence docs — incremental processing so you keep aggregates even after raw logs rotate away.
Takeaway: enable dateext, keep 90 days compressed, and aggregate before deletion.
Logfile Roundup
@LogfileRoundup
Don't lose the evidence: log rotation and retention sources
This post was published in the Telegram channel Logfile Roundup (@LogfileRoundup). All its posts are on the channel page.
Open on Telegram