Splunk Search

Can you add Sparkline instead of a value in tables?

dersa
Path Finder

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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

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

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...