Five Rules That Cut My Homelab Logs by 95%
It is Tuesday morning. I am cleaning up disk space because my homelab server is screaming at 94% capacity. I run du -sh /var/log/* and the output stops me: 200GB. Just logs. Uncompressed. From 18 services I forgot I was running.
The largest offender: docker/json-file logs from a Prometheus container that has been logging every single scrape target every 15 seconds for eight months. 87GB by itself. Next: nginx access logs, 34GB, no rotation configured. Then Grafana, 22GB, debug level still on from a troubleshooting session in November.
I deleted 190GB in about ten minutes. Not because I was reckless. Because none of it was indexed. None of it was searchable. None of it had ever been read.