Hello
I have the panel below in my dashboard
<row>
<panel>
<single>
<search>
<query>| inputlookup host.csv
| stats count
| eval count = if(count == 0, "no host", "Perimeter : " + tostring(count) + " hosts")</query>
<earliest>-30d@d</earliest>
<latest>now</latest>
</search>
<option name="colorMode">block</option>
<option name="drilldown">none</option>
<option name="rangeColors">["0x65a637","0xd93f3c","0xd93f3c"]</option>
<option name="rangeValues">[0,1]</option>
<option name="refresh.display">progressbar</option>
<option name="useColors">1</option>
</single>
</panel>
</row>
I need to format (font size, font weight, background color) the count result
I added and
Hi
Try this and modify accordingly
<dashboard>
<label>singleBG</label>
<row>
<panel>
<html>
<style>
#test rect{
fill: red !important;
}
#test .single-result{
font-size: 15px !important;
font-weight: normal !important;
font-style: italic;
}
</style>
</html>
<single id="test">
<search>
<query>index="_internal" |stats count | eval count = if(count == 0, "no host", "Perimeter : " + tostring(count) + " hosts")</query>
<earliest>-30d@d</earliest>
<latest>now</latest>
</search>
<option name="colorMode">block</option>
<option name="drilldown">none</option>
<option name="rangeColors">["0x65a637","0xd93f3c","0xd93f3c"]</option>
<option name="rangeValues">[0,1]</option>
<option name="refresh.display">progressbar</option>
<option name="useColors">1</option>
</single>
</panel>
</row>
</dashboard>
Hi
Try this and modify accordingly
<dashboard>
<label>singleBG</label>
<row>
<panel>
<html>
<style>
#test rect{
fill: red !important;
}
#test .single-result{
font-size: 15px !important;
font-weight: normal !important;
font-style: italic;
}
</style>
</html>
<single id="test">
<search>
<query>index="_internal" |stats count | eval count = if(count == 0, "no host", "Perimeter : " + tostring(count) + " hosts")</query>
<earliest>-30d@d</earliest>
<latest>now</latest>
</search>
<option name="colorMode">block</option>
<option name="drilldown">none</option>
<option name="rangeColors">["0x65a637","0xd93f3c","0xd93f3c"]</option>
<option name="rangeValues">[0,1]</option>
<option name="refresh.display">progressbar</option>
<option name="useColors">1</option>
</single>
</panel>
</row>
</dashboard>
its perfect thanks