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!

Introducing Splunk Enterprise Security 8.0!

Join us on Wednesday, November 20 to learn about Splunk Enterprise Security 8.0!To enhance SOC efficiency, ...

Mastering Threat Hunting

Register to watch Mastering Threat Hunting on Monday, November 18Join us for an insightful talk where we dive ...

Upcoming Community Maintenance: 10/28

Howdy folks, just popping in to let you know that the Splunk Community site will be in read-only mode ...