Splunk Dev

How can I display a value in a Splunk+Django web app?

yaronkretchmer
New Member

I created a simple django-based web app using the web toolkit, and could display a chart , a table, use tokens for pulldown etc.
Now I'd like to do something which is conceptually much simpler i.e. display a value which is the result of running a search, and piping the results to stats avg(variable). How do I go about doing that?

Tags (1)
0 Karma

jleduc
Explorer

I think that this is what you are looking for:
http://dev.splunk.com/view/SP-CAAAERH

here the search returns a value and the custom template just generates some HTML content based on the search returned value.
Hope it helps.

0 Karma

MartinMcNutt
Communicator

I recommend that you download two apps from Splunk:
Splunk 6 Dashboard Examples

Splunk Web Framework Toolkit

Two super examples that should get you on your way.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...