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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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