All Apps and Add-ons

Network Diagram Viz: change single value color (Green/Red) by status (OK/Error)

nathanluke86
Communicator

I have some simple SPL that displays a single value and would like to change the color based on the field value.

index = windows* Status=OK source=computer| dedup source |table host Status

Thanks,

0 Karma
1 Solution

to4kawa
Ultra Champion
index=windows* Status=* source=computer
| dedup source 
| table host Status
| eval color=case(Status=="OK","green",Status=="Error","red")
| eval type="desktop"
| rename host as from
| fields from, type, color

hi, Network Diagram Viz is interesting.
I used it for the first time.
How about this search with Network Diagram Viz?

View solution in original post

to4kawa
Ultra Champion
index=windows* Status=* source=computer
| dedup source 
| table host Status
| eval color=case(Status=="OK","green",Status=="Error","red")
| eval type="desktop"
| rename host as from
| fields from, type, color

hi, Network Diagram Viz is interesting.
I used it for the first time.
How about this search with Network Diagram Viz?

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 ...