- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Splunk Rest API: How to find the base URL?
I am using Splunk on my company's server.
I want to access the data using the Rest API.
Can anyone tell me how to find the base URL?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @akshit2291,
REST API is found the management port of your Splunk deployment which is 8089 by default.
If you're locally on the server you can reach it using :
https://localhost:8089
Else you can replace localhost
with your IP/URL.
Cheers,
David
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is the link to open the Splunk.
https://companyName.splunkcloud.com/en-US/app/C_Roundabout/C_getting_started
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

companyName.splunkcloud.com:8089 should do it.
But if you're using SH clustering and going through a load balancer you need to be sure that your URL allows you to use port 8089. If that's not the case you need to point directly to your search head using IP/DomainName.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
I think, this will solve your question: https://docs.splunk.com/Documentation/Splunk/7.3.0/RESTTUT/RESTsearches
Greetings Chris
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still could not figure our the base url.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Have you tried this? https://stackoverflow.com/questions/45839352/how-do-i-know-splunk-rest-api-base-url
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nothing is working for me.
