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!

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...