How to check in curl if isDone is set to 1 or my search is completed? I'm getting the below message and I hope it is because my search is not completed
The below command fails 19/20 times with the FATAL error message
curl -s -k -u 'XXX:XXX' -o - https://splunkserver:8089/services/search/jobs/$SID/results --get -d output_mode=csv
<msg type="FATAL">The search job terminated unexpectedly.</msg>
... View more
I'm unable to get the sid for my search rather I'm getting the below details. Please assist
curl -s -k -u 'hdcauser:hdcauser123' -o - https://splunkapi.homedepot.com:8089/services/search/jobs -d "search+${ENCODED_QRY}"|head
https://splunkapi.homedepot.com:8089/services/search/jobs
2016-04-20T11:22:46-04:00
<name>Splunk</name>
... View more