Running Logstash FILE config files "once"

Hello,

How can I run a logstash config ingesting a csv or xml or file so that it is not continually running? The logstash config file can keep running until it is manually shut down, however, how can I have it run once so that another logstash config file can run?

No. Not unless you use the "read" functionality of the file input with the "log_and_delete" option or the "delete" option and then have another script running that starts logstash if it find a new file in the folder and then stops logstash when there are no more files (after logstash deletes it).

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.