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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...