Splunk Search

How do I append a column to a chart?

j_partsch
Explorer

I have the following search

index=firewall policy_name="/Common/default" request_status=blocked (violations="Access from malicious IP address" OR violations="Web scraping detected") | chart count over date_mday by violations

which gives the following chart
date_mday Access from malicious IP address Web scraping detected
14 18951 65
15 16891 176
but what I want is
date_mday Access from malicious IP address Web scraping detected Total
14 18951 65 19016
15 16891 176 17067

0 Karma
1 Solution

elliotproebstel
Champion

I think this should do it:
| addtotals "Access from malicious IP address" "Web scraping detected" fieldname=Total

View solution in original post

0 Karma

elliotproebstel
Champion

I think this should do it:
| addtotals "Access from malicious IP address" "Web scraping detected" fieldname=Total

0 Karma

j_partsch
Explorer

This worked exactly the way I needed. Thank you!

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...