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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...