Splunk Search

Highlight field if x > 50

mattbirk
Explorer

I am trying to figure out a way in Splunk to have the results highlighted if my if statement is true.

For example, if CPU usage is > 50%, how can I get that field in my table to be highlighted? Is this possible? Thanks.

Tags (2)
0 Karma

woodcock
Esteemed Legend
0 Karma

mattbirk
Explorer

Hmm, that seems right, but it doesn't appear to work. For example I have:

rangemap field=CPU_Useage red=50-100 green=1-49 default=grey

What this does is add a field after each event with the word red, green, or grey, but doesn't actually highlight the number like I am looking to do. Thanks.

0 Karma

woodcock
Esteemed Legend

There are a large handful of completely different solutions on the page in my answer; have you tried them all?

0 Karma

stephanefotso
Motivator

Hello! The Table cell highlighting dashboard in the splunk-6x-dashboard-examples app is an example of what you need. Take a look at it, and let me know it any issue.
Thanks

SGF
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...