Dashboards & Visualizations

How to show data from external APIs in a Splunk dashboard

ranjithfs1
Explorer

Suppose there is an API endpoint GET example.com/userscount which returns a single integer in its response. I would like to show this value in a 'Single value' panel in a Splunk dashboard. Similarly, I would like to populate a stats table and charts with external data.

Using scripted input appears to be one solution, but is there a better way to do it which doesn't require the data to be stored in Splunk?

jkat54
SplunkTrust
SplunkTrust

Please see the documentation for "external lookups"

http://docs.splunk.com/Documentation/Splunk/6.2.0/Knowledge/Addfieldsfromexternaldatasources#Create_...

This uses a script to pull data in at search time vs indexing the data.

0 Karma

ranjithfs1
Explorer

The external scripts seems to take rows with missing fields as input and returns the same rows with the missing fields filled up. In my case, the script should not take any input but return a single number (if it is a single value panel) or a set of rows (if it is a statistics or chart) panel. How can I write a search command for this?

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...