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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...