Splunk Search

Splunk api using python script

sunil_bansal
New Member

Greetings,

Could any one help to push JSON data of my application to splunk using splunk api. (Instead of using splunk forwarder I am trying to push data in splunk server using splunk API )

Thanks,
Sunil

Tags (1)
0 Karma

starcher
Influencer

You would find it easier to use http event collector instead of the API if your data is in JSON and you are in python.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yep or this!

0 Karma

jkat54
SplunkTrust
SplunkTrust

See if this previous answer helps you:

https://answers.splunk.com/answers/404224/how-do-i-use-requireheader-to-override-indexing-se-1.html

This shows how to send your own cooked data via TCP

Otherwise, you'll need to write to a file and then oneshot it via the api:

http://docs.splunk.com/Documentation/Splunk/6.5.2/RESTREF/RESTinput#data.2Finputs.2Foneshot

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