Hi, I try to if saved search result hostname is matched, reload deploy-server with rest API. But When saved search runs, the deploy server is reloading every time. My saved search cron schedule 5 minutes periods work. There is a deploy server reload every 5 minutes. How I do, if hostname is matched , reload deploy server.
I have to ask, however, what you are trying to accomplish. Reload the deployment server is not a routine task. It's something that is necessary only when the serverclass.conf file is modified. What is the problem you are trying to solve with this search?
--- If this reply helps you, an upvote would be appreciated.
if any result doesn't come back, splunk search is fail.
if any result come back, rest doesn't running.
The reason why I want to do this is that, I want this custom alert action python script to trigger when there is a new Syslog added to SplunkHF, the script would add the newly discovered Syslog paths onto the deployment_apps inputs.conf to monitor those new paths and then send the deployed app towards the splunkHF. I have added the correct information to inputs.conf, Incase any results are returned I just want to Reload the related server class.