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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...