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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...