Hello everyone!
I receive "Page not found" message when I try to search using REST API.
My URL: [splunkhost]/en-US/services/search/jobs%20-d%20search="search%20index=enwiki""
Even such very common search gives nothing, although there is index=enwiki in system and I'm able to
search in it through webui.
I was using https://docs.splunk.com/Documentation/Splunk/8.2.1/RESTTUT/RESTsearches
as a reference.
What should I check?
The examples in that document are for the command-line interface and won't work in a web browser. When converting the examples for use in a browser, the part following "-d" goes in the body of a POST request.
Ok, thanks for tip.
One more moment:
curl -v -k --cookie "session_id_8080=session-id-value" http://host:port/en-US/services/search/jobs -d search="search *"
this one also gives me Page not found, although I'm taking cookie from valid session.
I guess, I'm missing something in path ?