Getting Data In

Why am I getting "404 Not Found" for every REST API call?

nsshey
Explorer

I am using the following query as per documentation:

curl -k -u username:password http://myhosthere:8000/services/search/jobs/

(obviously I replaced username, password, and myhosthere)

And I get the following results:

404 Not Found
Return to Splunk home page
Page not found!

which is the same message I get when I use a regular browser.
So I understand that the URL is obviously wrong, so how do I get the right URL? Am I using incorrect documentation?

Tags (3)
0 Karma

nchaturvedi
Explorer

I'm also facing the same error.

0 Karma

rjthibod
Champion

Use port 8089, not 8000

 curl -k -u username:password http://myhosthere:8089/services/search/jobs/

nchaturvedi
Explorer

The app may be hosted on that particular port!

0 Karma

vishnu123sai
New Member

wherever the app app hosted the mgmt default port is 8089 so we need to use 8089 only for the rest, webui and rest api call ports are different

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...