Splunk Search

Can you help me with my sum of counts query?

gdavid
Path Finder

I'm trying to get the sum of spam folders and where they are quarantined by user. Is there a better way to do this, especially since the number of folders to count may start to grow. (also the below eval(count(x) + count(y)) doesn't work)

| chart eval(count(inbound_phish) +  count(inbound_spam_definite)  ) AS "Quarantine1", 
 eval(  count(inbound_bulk) + count(inbound_bulk_50)) As "Quarantine2",  count(recipient) by recipient
Tags (1)
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @gdavid

Did the answer below solve your problem? If so, please resolve this post by approving it!
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!

0 Karma

Vijeta
Influencer
 | chart count(inbound_phish) as inbound_phish,  count(inbound_spam_definite) as inbound_spam_definite, count(inbound_bulk) as inbound_bulk, count(inbound_bulk_50) as inbound_bulk_50 by recipient| eval Quarantine1=inbound_phish+inbound_spam_definite ,
    Quarantine2=inbound_bulk + inbound_bulk_50| fields Quarantine1 Quarantine2  recipient
0 Karma
Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...