@Anachron
I use logrotate from void-packages and a config file for using it with nginx I've snatched from my old Debian box and modified slightly to suit my needs.
Kinda overkill just for nginx, but in case the need to handle some other logs outside of socklog facilities arises — I already have it.
Conversation
Notices
-
m0xEE (m0xee@social.librem.one)'s status on Wednesday, 10-Jul-2024 15:53:04 JST m0xEE - † top dog :pedomustdie: likes this.
-
Anachron :void: (anachron@fosstodon.org)'s status on Wednesday, 10-Jul-2024 15:53:05 JST Anachron :void: Yesterday I wrote a small #shell script to rename a file with its modified date with auto cleanup for files with that pattern older than 30 days and set up a #cronjob for services which dont support dynamic log locations.
This way my 260MB #nginx file will never become that big again and I can open the logfiles again.