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 ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...