Hi everyone, does anyone know a way of running splunk admin commands via a script. I need to run ./splunk reload deploy-server via cron job
Hi @magnuscowie80 , you can automate Splunk deployment by using ansible. You can integrate ansible and Splunk that will be much efficient and easier than the script.
--------------------------------------------------------
If this helps your like will be appreciated😀
If you can type it on the command line then you should be able to put it in a script. Just be sure to include credentials with commands that need them.
/opt/splunk/bin/splunk reload deploy-server -auth user:password
That is the issue, securing my your credentials, I am guessing am going to be learning ansible.. thanks for the reply