I want to use Ansible or script to install Splunk on Linux servers. When I issue "splunk add forward-server server_ip:port", it prompts me to enter "y" to finish.
How I can run this command in non-interactive mode?
Thanks,
Philip
Im not sure if this is different between a UF and a HF, but HF asks you to login in order to make these changes. Pretty sure the UF does also, but could be wrong...
In newer versions, you should be able to add the --answer-yes flag from the command line. I havent tried this, so you can validate and post the results here.
Thanks
splunk add forward-server server_ip:port --answer-yes
Im not sure if this is different between a UF and a HF, but HF asks you to login in order to make these changes. Pretty sure the UF does also, but could be wrong...
In newer versions, you should be able to add the --answer-yes flag from the command line. I havent tried this, so you can validate and post the results here.
Thanks
The --answer-yes worked for my script. Thanks!!!