Getting Data In

Splunk admin credentials in scripted input

Erik_Swan
Splunk Employee
Splunk Employee

I remember reading somewhere i could do this but cannot find any docs on it.

I have a scripted input that wants to perform a search to find out where it last left off. To perform the search i need to auth. I remember hearing that before my script was called splunk would set the env var $USER, $PASSWORD or something. I tried dumping out env but dont see it.

Anyone figured this out or am i just dreaming of a feature.

e

Tags (2)

Erik_Swan
Splunk Employee
Splunk Employee

gkanapathy
Splunk Employee
Splunk Employee

Well, that's for a search script, not a scripted input, so it's going to be slightly different. You could probably just read the first line of stdin with with scripted and get the token that way.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Perhaps what you're thinking of is that a scripted inputs and search scripts can receive an auth token. If they are set to do so (in commands.conf and inputs.conf respectively) the auth token should be passed in on stdin.

Erik_Swan
Splunk Employee
Splunk Employee

example somewhere?

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