Hello,
I have multiple Splunk forwarders in my setup. I am writing a script in which I need to check if Splunk forwarders are up and running.
I am executing this script from a remote machine but I am getting unexpected behavior. Like sometimes checking the status stops the Splunk Forwarder.
Example:
bash$ ./splunkforwarder2/bin/splunk status
splunkd is running (PID: 20365).
bash$ ./splunkforwarder2/bin/splunk status
splunkd 11412 was not running.
Stopping splunk helpers...
[ OK ]
Done.
Stopped helpers.
Removing stale pid file... done.
Is there any alternate way in which I can find out what specific forwarder is up and running?
Regards,
Ankit
↧