Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to terminate pipeline when EOF is reached #212

Closed
danhermann opened this issue Sep 10, 2018 · 2 comments
Closed

Option to terminate pipeline when EOF is reached #212

danhermann opened this issue Sep 10, 2018 · 2 comments

Comments

@danhermann
Copy link

A user requests the option to terminate the pipeline when EOF is reached. This would be useful for cases where new files are periodically presented to Logstash for processing and it is not desirable or feasible to leave a Logstash instance running all the time.

May be related to #39.

@guyboertje
Copy link
Contributor

This is only feasible in "read" mode as EOF has no significance when tailing.

I will add it to the meta issue of pending changes #211

BigYellowHammer added a commit to BigYellowHammer/logstash-input-file that referenced this issue May 22, 2019
…ns#212)

    * Adding exit_when_all_files_read flag to config
    * Disable active discovery when exit_when_all_files_read set to true
    * Remove file from watched_file_collection when EOF reached and flag set to true
    * Adding condition to exit when file collection is empty and flag set to true

Fixes logstash-plugins#212
andsel pushed a commit to BigYellowHammer/logstash-input-file that referenced this issue Feb 18, 2020
…ns#212)

    * Adding exit_when_all_files_read flag to config
    * Disable active discovery when exit_when_all_files_read set to true
    * Remove file from watched_file_collection when EOF reached and flag set to true
    * Adding condition to exit when file collection is empty and flag set to true

Fixes logstash-plugins#212
andsel pushed a commit to BigYellowHammer/logstash-input-file that referenced this issue Feb 19, 2020
…ns#212)

    * Adding exit_when_all_files_read flag to config
    * Disable active discovery when exit_when_all_files_read set to true
    * Remove file from watched_file_collection when EOF reached and flag set to true
    * Adding condition to exit when file collection is empty and flag set to true

Fixes logstash-plugins#212
andsel pushed a commit to BigYellowHammer/logstash-input-file that referenced this issue Feb 19, 2020
@andsel
Copy link
Contributor

andsel commented Feb 20, 2020

Published plugin version 4.1.16 that solves it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants