Splunk Search

Counts and sum of counts

alnapp
Engager

I'm sure this is obvious but I'm not seeing it

I've a search endiing in "chart count by UserName, host"

which gives me

> Username host1 host2 
> user1     2     2
> user2     5     1

but I really want a total column
e.g

> Username host1 host2 Total
> user1     2     2      4 
> user2     5     1      6

Any help would be appreciated

Tags (3)
1 Solution

cramasta
Builder

...chart count by UserName, host | addtotals

you can also add the column totals by using ...| addcoltotals

View solution in original post

cramasta
Builder

...chart count by UserName, host | addtotals

you can also add the column totals by using ...| addcoltotals

alnapp
Engager

I knew it would be obvious, thank you for the insight 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...