Knowledge Management

Splunk REST APIs

akshada_s
New Member

Hi Team

I am new to Splunk and looking for a way to Fetch few metrics data from Splunk using Splunk REST API.
Can you please help me with right approach to implement the same?

I have explored 2 ways so far:
1. Using Search Job endpoints (Trying out this way is in-progress)
2. Using search queries within scripts

If you can help with pro's n cons of above methods, also if any other way which will be appropriate one, it would be helpful.
I am looking for best way to develop these APIs, so can get the result stored into files\database.

Any inputs would be really appreciated.

Thanks in advance!
Akshada

 

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@akshada_s - If you are trying to run Splunk search from outside the script then jobs endpoint is usually the answer.

Find more info here - https://docs.splunk.com/Documentation/Splunk/9.1.1/RESTTUT/RESTsearches

 

I hope this helps!!!

0 Karma
Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...