I don’t disagree that logrotate is a sensible answer here, but making that the responsibility of the user is silly.
Comment on Rant! 100GB Log file in Nextcloud.
Shimitar@downonthestreet.eu 1 week ago
You should always setup logrotate. Yes the good old Linux logrotate…
non_burglar@lemmy.world 1 week ago
catloaf@lemm.ee 1 week ago
We should each not have to configure log rotation for every individual service. That would require identify what and how it logs data in the first place, then implementing a logrotate config. Services should include a reasonable default in logrotate.d as part of their install package.
sugar_in_your_tea@sh.itjust.works 1 week ago
Docker services should let docker handle it, and the user could then manage it through Docker or forward to some other logging service (syslog, systemd, etc). Processes in containers shouldn’t touch rotation or anything, just log levels and maybe which types of logs go to stdout vs stderr.
RubberElectrons@lemmy.world 1 week ago
Ideally yes, but I’ve had to do this regularly for many services developed both in-house and out of house.
Solve problems, and maybe share your work if you like, I think we all appreciate it.