Security

I want to pass credentials for a Splunk search

ageld
Path Finder

There was a method to pass user credentials to a "splunk search" command. I want to execute it from within bash script. If I recall it properly there was something like
-user
-password
flags. I cannot find mentioning of those parameters in the syntax of "splunk search" command anymore. Is there a method to do that?

Thanks!

0 Karma

ageld
Path Finder

Thank you very much for the answer

0 Karma

elliotproebstel
Champion

I think you are looking for this: -auth username:password.
Here's documentation about CLI usage:
http://docs.splunk.com/Documentation/Splunk/7.0.1/Admin/GethelpwiththeCLI

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...