Getting Data In

Splunk API output

sreekaanth_91
New Member

When I try the api endpoint curl -k -u username:passwd https://localhost:8089/servicesNS/admin/search/search/jobs/export -d search='search sourcetype=bcoat_proxy, cs_username="username", cs_host="yahoo.com"' -d output_mode=json
I am able to get output for the above with the specific username but when I try the same endpoint and data with python requests (POST) or pycurl(POST) I am not getting cs_username in the output but everything else is available.

Has someone gone through a similar issue?

Thanks in advance!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...