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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...