Perform action when logstash is complete

I'm currently using logstash to pipe data from MySQL and then index this data to elasticsearch.

I have python scripts that creates dynamic logstash configurations and creates subprocesses to run it. But since logstash runs as a subprocess it's not possible for me to know when it's complete. I do track the PIDs of each job but I'd like to perform a certain action when logstash is complete.

Is there any option available in logstash to perfrom post actions? for example update a table entry in mysql or simply execute a script?

Is there any option available in logstash to perfrom post actions?

No, Logstash has no concept of "done".

Are you using the jdbc input?

1 Like

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