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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...