Hello all,
is it possible to call Splunk RestAPI with request in JSON.
I am trying in SOAP UI software, media Type = application/json
And when request is inputed as string: search=search index=myindex |head 5
I get valid response
But when I try request in json format {"search": "search index=myindex |head 5"}
I get response: {"messages": [{ "type": "FATAL", "text": "Empty search." }]}
Tried also following requests: {"search": "index=myindex |head 5"} {"search": search index=myindex |head 5} {"body": {"search": "search index=myindex |head 5"}} Thanks
... View more