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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...