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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...