Dashboards & Visualizations

How to configure a status panel in Splunk dashboard?

chetan022
Engager

How to configure a status panel in Splunk dashboard.

Based on the input dropdown field change[program input] , there should be some indicator which represents the status[Basically representing the overall status of the program].

The indicator can be gauge or similar to radio button showing red/amber/green status and has to be located in the same row as that of input dropdownCapture.JPG

Labels (1)
Tags (1)
0 Karma
1 Solution

johnnykhoueiry
Explorer

@chetan022 Unfortunately you cannot add any gauge inside the input panel.

From the Splunk documentation you are only allowed inside the fieldset to use form inputs

johnnykhoueiry_0-1596791171429.png

https://docs.splunk.com/Documentation/Splunk/8.0.5/Viz/PanelreferenceforSimplifiedXML

 

I suggest to create a new row under it and place that Gauge inside it.

 

Please mark it as correct if that helped. Have a nice day 😄 

View solution in original post

0 Karma

johnnykhoueiry
Explorer

Hey @chetan022 only input fields allowed between the <fieldset> </fieldset> nodes.

0 Karma

chetan022
Engager

So We can not add Gauge or any other panel to the same row as that of input dropdown ?

My source code is :

 

<form theme="dark">
<label>SampleDashboard</label>
<fieldset submitButton="false">
<input type="text" token="number" searchWhenChanged="true">
<label>Number</label>
</input>
<input type="dropdown" token="number">
<label>field1</label>
<choice value="30">test1</choice>
<choice value="50">test2</choice>
<choice value="60">test3</choice>
<choice value="90">test4</choice>
</input>
</fieldset>
<row>
<panel>
<chart>
<search>
<query>|makeresults |eval value=$number$ | table value</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<progress>
<eval token="gaugecolor">if($result.value$ == "100","#006600","0xffe800,0xbf3030")</eval>
<eval token="gaugerange">if($result.value$ == "100","0,100","0,".$number$.",100")</eval>
</progress>
</search>
<option name="charting.chart">radialGauge</option>
<option name="refresh.display">progressbar</option>
<option name="charting.chart.rangeValues">[$gaugerange$]</option>
<option name="charting.gaugeColors">[$gaugecolor$]</option>
</chart>
</panel>
</row>
</form>

0 Karma

johnnykhoueiry
Explorer

@chetan022 Unfortunately you cannot add any gauge inside the input panel.

From the Splunk documentation you are only allowed inside the fieldset to use form inputs

johnnykhoueiry_0-1596791171429.png

https://docs.splunk.com/Documentation/Splunk/8.0.5/Viz/PanelreferenceforSimplifiedXML

 

I suggest to create a new row under it and place that Gauge inside it.

 

Please mark it as correct if that helped. Have a nice day 😄 

View solution in original post

0 Karma

chetan022
Engager

Thankss for your Help !!!

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!