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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...