I'm trying to use the rest api but all I get is an empty response.
This is what I try to do and the result you see on the row under.
curl -u username:password http://vm-splunk:8089/services/search/jobs
curl: (52) Empty reply from server
Try https://vm-splunk:8089/services/search/jobs
The REST API is provided by splunkd
which is https by default.
Try https://vm-splunk:8089/services/search/jobs
The REST API is provided by splunkd
which is https by default.
Thanks. It worked as just fine when accessing it with curl over https but not when I used the postman plugin in chrome.
In postman, disable certificate validation to get it to work. The -k in curl (curl -k -u ....) is ignoring the self-signed splunk cert.
Go to File->Settings
Under Request it's "SSL Certificate Validation". Just switch it off.