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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...