Splunk Search

Can you add Sparkline instead of a value in tables?

dersa
Explorer

Hi, I'm wondering if it is possible to add a sparkline instead of a value into a table? I am using the this query:

eventtype="SNMP-Data" host="172.23.1.100" | rex max_match=0 "UCD-SNMP-MIB::mem(?((AvailSwap)|(AvailReal)|(TotalReal))\.\d+\,.*)"  | table  temp  | mvexpand  temp | rex  field=temp "(?\w+)\.""(?\d+)\,""(?\d+)" | chart values(value) over id by metric | rename AvailReal as "Available Memory in kB" AvailSwap as "Available Swap in kB" TotalReal as "Total Memory in kB"

The output looks pretty much like this
alt text

It would be nice if the tables would show a graph rather than the values.

thanks in advanced
Alex

0 Karma

felipesewaybric
Contributor

you can use the sparkline in the stats

ex: stats sparkline(avg(value)) latest(value) by monitor

and if stay like bar, just change in the xml:

<param name="type">sparkline</param>
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 ...