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?