Getting Data In

Getting 404 using axios call to rest api

hgrbble1
New Member

I am trying to connect to splunk's rest api. In the command line when I curl -k https://localhost:8089/services/auth/login --data-urlencode username=admin --data-urlencode password=pass. I get a response with a session key. But when I try
axios.get({
url: 'https://localhost:8089/services/auth/login'
data: {
username: 'admin',
password: 'pass'
}
})
.....

I get a 404 status back

0 Karma
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...