sul-dlss / SearchWorks

SearchWorks (Stanford University Libraries)
http://searchworks.stanford.edu
Other
48 stars 10 forks source link

Stop rotating search logger #4323

Closed jcoyne closed 2 months ago

jcoyne commented 2 months ago

@jonrober says:

On sw-webapp*, it seems like the application is doing its own log rotation of /var/log/Searchworks/search.log. logrotate is often rotating an almost empty file, with something else rotating the log first at one minute til midnight. I’m guessing that it’s the application doing that early rotation. The result is that a lot of logs are filling extra disk space since the thing rotating them first doesn’t do gzipping and doesn’t do expiration of old logfiles after X days like logrotate.