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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...