Getting Data In

No answer from service api

toja
New Member

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
Tags (2)
0 Karma
1 Solution

dart
Splunk Employee
Splunk Employee

Try https://vm-splunk:8089/services/search/jobs

The REST API is provided by splunkd which is https by default.

View solution in original post

dart
Splunk Employee
Splunk Employee

Try https://vm-splunk:8089/services/search/jobs

The REST API is provided by splunkd which is https by default.

toja
New Member

Thanks. It worked as just fine when accessing it with curl over https but not when I used the postman plugin in chrome.

0 Karma

asemle
Explorer

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.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...