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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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