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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...