Documentation:
3.1.5
Splunk Professional requires all commands to be authenticated. The API supports both per-command and per-session authentication.
Command AuthenticationIndividual commands can be authenticated by including an authentication username and password. One parameter can specify both user and password, but note that the --auth command must come last on the command line. If either the username or password aren't specified, the command line prompts the user.
Parameterssplunk search meta::all -auth admin:changeme splunk search meta::all -auth admin
Alternatively, users can use the "login" command to cache their auth credentials on the local filesystem securely. Auth tokens persist until a logout command is issued or the Splunk server is restarted.
Examplessplunk login splunk logout
Comments
No comments have been submitted.