I'm trying to install splunkforwarder-5.0.1-143156-linux-2.6-amd64.deb in an automated, unattended way using fabric. The issue is that when starting splunk universal forwarder for the first time using:
/opt/splunkforwarder/bin/splunk start
You need to accept the terms and conditions, which is difficult to automate. Is there a way to avoid that message from showing? What would be the ideal solution is:
/opt/splunkforwarder/bin/splunk start --accept-terms-and-conditions
Which would simply start the daemon without asking any questions.
PS: This is not a fabric issue but a splunk one.
the option exists and is --accept-license
see the list of flags for windows : http://docs.splunk.com/Documentation/Splunk/latest/Deploy/DeployaWindowsdfviathecommandline
and for linux http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Deployanixdfmanually
Update to the first link above, doc has moved to: http://docs.splunk.com/Documentation/Splunk/6.0.1/Forwarding/DeployaWindowsdfviathecommandline
and for *nix the new link: http://docs.splunk.com/Documentation/Splunk/6.1.1/Forwarding/Deployanixdfmanually
the option exists and is --accept-license
see the list of flags for windows : http://docs.splunk.com/Documentation/Splunk/latest/Deploy/DeployaWindowsdfviathecommandline
and for linux http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Deployanixdfmanually
Awesome! Thanks! 🙂