Dashboards & Visualizations

Need help with Single Value color based on text on the panel

tmarella0217
Loves-to-Learn

| rex field=Uptime "(?<Uptime_Days>^([^d]+))"
| eval Uptime_Years=(Uptime_Days/365)
| dedup Host_Name
| eval Description=(case(Uptime_Years>=7, "Over 7 Years", Uptime_Years<7 AND Uptime_Years>3,"3 to 7 Years", Uptime_Years<3, "Less than 3 Years" ))
| rename Description as "Uptime_Category"
| stats count(Host_Name) as total by Uptime_Category
| eventstats sum(total) as grand_total
| eval percentage = round((total/grand_total)*100,1)
| table Uptime_Category percentage
| eval Description=(case(Uptime_Category="Over 7 Years" AND percentage>="10%","Poor",
 Uptime_Category="3 to 7 Years" AND percentage>="20%","Needs Attention", Uptime_Category="Less than 3 Years" AND percentage>="80%","Good" ))
| rename Description as "Health Status"
| stats count by "Health Status"


Need help with Color Coding Poor to "Red", Needs Attention to "Yellow", & Good to "Green" @niketn 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...

Introducing New Splunkbase Governance!

Splunk apps are essential for maximizing the value of your Splunk Experience. Whether you’re using the default ...

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...