I need help to find a work around for my use case.
I am using logstash exec input plugin to execute some bash scripts, to process data and index them into ES. And, exec was scheduled to run daily once at 12AM. That part was implemented and it has been running absolutely fine.
Now, I want to add some intelligence to this exec input. I want to check the health of the external service which is running on another machine (not on the same machine where logstash is running).
Can I implement such kind of conditional exec input plugin, check service on remote machine is running or not before run 'exec input plugin' ?
Any help would be appreciated.
Thanks in advance!