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!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...