Getting Data In

Splunk Rest API: How to find the base URL?

akshit2291
Explorer

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?

DavidHourani
Super Champion

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

0 Karma

akshit2291
Explorer
0 Karma

DavidHourani
Super Champion

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.

0 Karma

chris1337
Explorer

Hi,

I think, this will solve your question: https://docs.splunk.com/Documentation/Splunk/7.3.0/RESTTUT/RESTsearches

Greetings Chris

0 Karma

akshit2291
Explorer

Still could not figure our the base url.

0 Karma

chris1337
Explorer
0 Karma

akshit2291
Explorer

Nothing is working for me.

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...