Splunk Search

SparkLine Formatting not working

hbpatel142
Engager

Form or Dashboard is not displaying the bar from the below query and configuration. Let me know what I am doing.

<row>
<table>
<searchTemplate>index="XXXXXXXXXX" $ApplicationGroup$ counter="% Processor Time" OR counter="% Committed Bytes In Use" OR counter="Total Method Requests/sec" | stats sparkline(avg(Value)) as Trending, perc90(Value) as value by host , counter </searchTemplate>
<title>Performance Counters by Host</title>
<format field="sparkline" type="sparkline">
<option name="type">bar</option>
<option name="height">30</option>
<option name="barColor">green</option>
</format>
</table>
</row>

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

As per http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#Sparkline_opti... you're referring to the wrong field name in <format field="..."> and there's no option named barColor.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

As per http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#Sparkline_opti... you're referring to the wrong field name in <format field="..."> and there's no option named barColor.

hbpatel142
Engager

Thanks for posting the reference link. I was not passing the field="" value properly and hence it was not working.

0 Karma
Get Updates on the Splunk Community!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...