I wish to create a script for setting up forwarding to a splunk server. Here's what I have so far:
./splunk add forward-server SPLUNK-IP-ADDRESS:SPLUNK-PORT
However, it asks for my credentials. How can I non-interactively pass credentials to splunk and setup the forwarder?