Splunk Search

chart count by Department,Project

kumasaua
Explorer

Dear ALL,

Need your support for calculating Column sum in last column..
I have employee master table.. need sum of all project members department wise.
1st column 2nd column 3rd column sum
12 15 23 50
25 10 10 45

My query is something like this |inputlookup abc.csv | chart count by Department,Project

Tags (1)
0 Karma

niketn
Legend

@kumasaua, try addtotals command which will add Total as final column by default.

| inputlookup abc.csv 
| chart count by Department,Project
| addtotals row=t col=f
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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