canonical / layer-filebeat

Filebeat is a lightweight log shipper. This is the source for the filebeat charm in the Juju charm store.
Other
3 stars 27 forks source link

Add close_timeout config to filebeat #87

Open hloeung opened 3 years ago

hloeung commented 3 years ago

Hi,

As reported https://bugs.launchpad.net/filebeat-charm/+bug/1875662, we're seeing few instances where filebeat is holding onto older log files. @jetpackdanger pointed out https://www.elastic.co/guide/en/beats/filebeat/current/faq-deleted-files-are-not-freed.html

Any chance we can add a option to tune Filebeat's close_timeout (and possibly set a sensible default such as an hour or two)?