Open luizgpsantos opened 4 years ago
It would be a fairly trivial change to add a periodic_flush method (like the aggregate filter), and rename close_stale_files as 'flush' and remove the call to it from multi_receive_encoded.
That said, this bug is fixed in the java_execution engine, because that sends empty batches through the pipeline every 15 seconds, so multi_receive_encoded is called to process it and that closes files. But note that that is an issue and if it get fixed this breaks again.
Version: Logstash 6.8.4 or Logstash 7.7.0 with
pipeline.java_execution: false
(JE had a different behavior which was fixed on https://github.com/elastic/logstash/pull/11737)Operating System: Unix
Config File (if you have sensitive info, please remove it):
input.json
file:/tmp/output.json.gz
and the stale check runs every 10 seconds:input.json
and observe that stale checks are not performed anymore (logs does not print stale messages anymore).Can we improve this behavior to make the stale check event independent? Thanks!