You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In read mode if exit_after_read is set to true and file_completed_action to log (i.e., the files are not removed from their path after being fully read) logstash will not properly halt execution if all files have already been fully read during a previous run.
This is because files which are fully read (according to sincedb) are marked as in-active and are thus skipped in the Processor.process_active file loop and left in a watched state thus the pipeline never becomes empty.
Calling common_detach_when_allread before skipping in-active files, when exit_after_read is set fixes this issue.
Description
In read mode if
exit_after_read
is set totrue
andfile_completed_action
tolog
(i.e., the files are not removed from their path after being fully read) logstash will not properly halt execution if all files have already been fully read during a previous run.This is because files which are fully read (according to sincedb) are marked as in-active and are thus skipped in the
Processor.process_active
file loop and left in a watched state thus the pipeline never becomesempty
.Calling
common_detach_when_allread
before skipping in-active files, whenexit_after_read
is set fixes this issue.Information
/tmp/test.log
test.log
as fully read, but does not stop execution.The text was updated successfully, but these errors were encountered: