Getting Data In

REST API in custom command

lukasz92
Communicator

Hi,

I would like to implement a new command to do operations with kvstorage, with my own Python script.
How can I use REST API (get the Session Key) inside my custom command?

Tags (3)
0 Karma
1 Solution

lukasz92
Communicator

OK, found it.

Example is in etc/apps/search/bin/input.py
And one have to add passauth = true to commands.conf

View solution in original post

lukasz92
Communicator

OK, found it.

Example is in etc/apps/search/bin/input.py
And one have to add passauth = true to commands.conf

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