Splunk Search

how to display only those rows which have the fillnull values

vrmandadi
Builder

alt text
index=abc |chart sum(" Views") by "Site" ,"Event Date" | fillnull value=0

how can I display only those rows which have the fillnull value

0 Karma

somesoni2
Revered Legend

Give this a try

index=abc |chart sum("Views") by "Site_Section" ,"Event Date" | fillnull value=0
| eval hasZero="No" | foreach * [| eval hasZero=if("<<MATCHSTR>>"!="Site_Section" AND '<<FIELD>>'=0,"Yes",hasZero) ]
| where hasZero="Yes" | fields - hasZero

niketn
Legend

@vrmandadi, do you need the rows which have all 0s or at-least one zero for various "Event Date"?

Also if possible what is the format of "Event Date"? Can you add some sample data output for above query?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

vrmandadi
Builder

I just added an image ,and yes I need all the rows with 0s

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...