Monitoring Splunk

Trying to extract splunk search queried data from Splunk API using Postman.

sagar_shubham
Explorer

Trying to extract splunk search queried data from Splunk API using Postman. What all para meters need to pass to get successful response.

https://testsplunk:8089/services/search/jobs/export?output_mode=csv

Headers:

[{"key":"search","value":"index=abc sourcetype=xyz|stats count by host ","description":"","type":"text","enabled":true}]

Authorization header :

UserName: jhasuagduh

Password: pwd

 

I am getting 400 bad request and 401 unautherized as response. Please assist.

Thanks

Sagar

Tags (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Please provide the proper request/header/URL/etc and error you are getting.

Kindly follow the REST API Doc - https://docs.splunk.com/Documentation/Splunk/8.2.4/RESTREF/RESTprolog

 

0 Karma

Sangeethasan
New Member

@sagar_shubham  Do you have update for the error you got while connecting via postman ? I am also facing the same kind of issue

0 Karma
Get Updates on the Splunk Community!

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...