I am trying to run a Linux bash script on the deployment server to pull down the deployment clients.
I have the Splunk command correct, but get an authentication error when this is run under cron or even from the command line.
There are multiple postings on this command, but none of them talk about requiring authentication.
How do we work around the account password issue?
command: Splunk reload deploy-server -class
I tried the -auth parameter that is shown on other command options, but this one does not seem to like this option.
command: splunk reload deploy-server -class
results: Your session is invalid. Please login.
Splunk username: admin
An authentication error occurred: Client is not authenticated
Any guidance would be appreciated.