I'm building a custom search command (in Python with the SDK 1.5). From within the script (search command), I need to connect to the Splunk instance to execute some extra searches and retrieve some kv collections.
To have a service object to Splunk I use:
service = client.connect( username=, password=, app=)
But I do not want to have the username and password part of this script. I have tried "passauth" from the commands.conf, but I do not seem to get a token or session.
Is there a way to pass credentials to this type of script?
↧