Dashboards & Visualizations

How can I get Not equal in format block?

paddy
New Member

I have a simple dashboard reporting on file transfers.  There is one column I want color coded based on return code.  Ideally I could have either return code = "0" is green, return code != "0" is red

What I currently have covers the "0" just fine, but doesn't cover non"0" results.

<format type="color" field="PPA1ReturnCode">
<colorPalette type="map">{"0":#65A637,"!=0":#D93F3C,"Failure":#D93F3C}</colorPalette>
</format>

I also tried "NOT 0", and that didn't work either.

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you use

<colorPalette type="expression">

Table column Simple XML - Splunk Documentation

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...