Splunk Search

Why is my chart not displaying all field values?

rkaakaty
Path Finder

Hello,

My chart for some reason, isn't displaying the value "high" and it has the high count at the bottom of the graph when I want the count of the other types under the columns.

Here is my code:

index=nessus
| stats count(eval(risk_factor ="high")) as high count(eval(risk_factor ="medium")) as medium count(eval(risk_factor ="critical")) as critical count(eval(risk_factor ="low")) as low count(eval(risk_factor ="none")) as none 

alt text

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

Try setting the visualization barchart format-

format - general - show data values - on
0 Karma

woodcock
Esteemed Legend

Why not just do this:

index=nessus | stats count BY risk_factor

DalJeanis
SplunkTrust
SplunkTrust

Not the answer to the question he asked, but a great answer nonetheless.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...