0

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?

user3207874
  • 251
  • 1
  • 3
  • 8

1 Answers1

1

You can use the splunk login command to pass your credentials to the Splunk server:

./splunk login -auth 'admin:mypassword'
./splunk add forward-server SPLUNK-IP-ADDRESS:SPLUNK-PORT 
user3207874
  • 251
  • 1
  • 3
  • 8