On a systemd-based VPS the journal is not a plain text file you can tail and forget — it is a structured, indexed binary store managed by systemd-journald, and left at its defaults it will quietly grow until it claims a slice of your disk you never agreed to give it. That structure is a feature, not an annoyance: every …
Read More1/var/log/myapp/*.log { 2 daily 3 rotate 14 4 compress 5 delaycompress 6 missingok 7 notifempty 8 create 0640 www-data adm 9 sharedscripts 10 postrotate 11 systemctl reload myapp >/dev/null 2>&1 || true 12 endscript 13} That single stanza is the whole job: it keeps two weeks of compressed application logs, never lets …
Read More