Splunk Dev

How to store and retrieve password for alert python script?

Dev999
Communicator

I need to call a 3rd party Rest API in alert action python script. I am looking for a way to store and retrieve user name and password for the 3rd party APIs. The app setup seems to work for script data inputs only - I tried and could not get it work for alerts. What is the best option here?

0 Karma
1 Solution

dwaddle
SplunkTrust
SplunkTrust

splunker2117
Loves-to-Learn Lots

Is it possible to share working link for guidance?or any other reference would be much appreciated. 

 

0 Karma

starcher
SplunkTrust
SplunkTrust

Thanks. I've updated the code to handle that now.

0 Karma

Dev999
Communicator

Not so fast! with Splunk 6.1.1, sessionKey must be urldecoded.

0 Karma

Dev999
Communicator

Did not realize the "sessionKey=" was a part of the sessionKey. Once removed the first 11 characters all worked. Thanks!

0 Karma

Dev999
Communicator

Thanks. Good to know someone already made it work. I followed the same script input doc. I will try to figure out what my problem is and update this.

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