3 ms·
Arguably log rotation should be handled outside of the application with logrotate or filebeat.
by dijit 5y ago
Arguably log rotation should be handled outside of the application with logrotate or filebeat.
- coredog64 5y agoPlease not filebeat. For a few months I had this recurring problem where an app was logging way too much stuff. Filebeat dutifully accepted it and then created ghost files as a buffer which then filled up the disk and crashed the app. Depending on the velocity at which the log barf was being produced, we sometimes had a short window in which we could manually (!) log in via SSH (!) and restart filebeat to force it to close the open file handles at the cost of losing everything being buffered locally (!).