Logfile Roundup
Logfile Roundup
@LogfileRoundup

Mistake: logrotate eats the data you were about to analyze

Default rotation discards old logs before you've sampled a full crawl cycle. Sources:

→ logrotate man page — rotate 4 + weekly = only ~4 weeks retained, and create vs copytruncate changes whether in-flight writes are lost.
Takeaway: bump retention, or ship to cold storage before rotation.

→ Nginx / Apache reopen docs — Why copytruncate can drop lines under load if the app doesn't reopen the handle.
Takeaway: prefer signal-based reopen (USR1) over copytruncate for accuracy.

★ Pick of the week — a tiny ship-on-rotate hook — postrotate script that gzips and pushes to object storage.
Takeaway: never analyze from the live file you're still rotating.
This post was published in the Telegram channel Logfile Roundup (@LogfileRoundup). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.