Dashboards & Visualizations

how to give colors to single value visualization if results are in Text format??

Puvi
New Member

Hi,

i have singe value field with output in text format like normal,critical,low,elevated
i have to give respective colors.
how to do it?

0 Karma

vnravikumar
Champion

Hi

Try this

By default, a single value visualization has this color mapping configuration for ranges.

low: green
guarded: blue
elevated: yellow
high: orange
severe: red

...| eval range=case(your_field_name=="your_field_value1", "severe", your_field_name=="your_field_value2","high",
    your_field_name=="your_field_value3","elevated",
    your_field_name=="your_field_value4","guarded",your_field_name=="your_field_value5","low",
    1=1,"low")
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...