Splunk Search

restful search not working

kml_uvce
Builder

I am running this

curl -u admin:changeme -k 8089/services/search/jobs/1329299816.358/results -d output_mode=csv

and getting this error:

<?xml version='1.0' encoding='UTF-8'?>
Method Not Allowed

Tags (2)

the_wolverine
Champion

I have to believe there are serious flaws in the documented example which use -d for setting the output_mode. In all the answers I've seen here, you have to actually use "--get" instead of "-d".

0 Karma

Damien_Dallimor
Ultra Champion

Try issuing as a GET request by using the --get flag

curl -k -u admin:changeme https://yourhost:8089/services/search/jobs/1329299816.358/results
--get -d output_mode=csv
0 Karma

kml_uvce
Builder

Yes this serch give me output on splunk ui...

0 Karma

Damien_Dallimor
Ultra Champion

Does the command for search job you posted for that ID actually return any data ?

0 Karma

kml_uvce
Builder

This is not giving me any output

curl -k -u admin:changeme2 https://:8089/services/search/jobs/1329299816.358
/results --get -d output_mode=csv

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 ...