Getting Data In

Splunk Rest calls not available

rbathla
New Member

We have splunk enterprise 6.5.2.

We are trying to access Splunk Rest API

curl -u : -k http://:8089/services/alerts/fired_alerts

This is the error I get while running the above command with the updated hostname and credentials.
curl: (56) Failure when receiving data from the peer

Can you suggest what is wrong and do I have to enable anything to access splunk API?

0 Karma

abhutiani
Explorer

By default the REST API is run over SSL, so try this:

curl -u : -k https://[hostname]:8089/services/alerts/fired_alerts
0 Karma

rbathla
New Member

Can someone suggest what are we missing?

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...