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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...