- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Splunk api using python script
sunil_bansal
New Member
03-14-2017
05:43 AM
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
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

starcher
Influencer
03-15-2017
08:24 PM
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jkat54

SplunkTrust
03-16-2017
04:18 AM
Yep or this!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jkat54

SplunkTrust
03-14-2017
06:00 AM
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
