Splunk Search

How to calculate sum of the two count values?

ABHAYA
Path Finder

I am using above splunk query   stats count by BankType.

 I am getting result as 

 SBI   27

AXIS   15

CITI   12.

but I want to sum the count of Axis and citi and  display it under AXIS column. so basically output would be something like this 

SBI 27

AXIS 27.

Can anyone suggest what can we do here ?

 

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval BankType=if(BankType=="CITI", "AXIS", BankType)
| stats count by BankType

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| eval BankType=if(BankType=="CITI", "AXIS", BankType)
| stats count by BankType
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...