Splunk Search

Splunk stats count by two fields

srujan594
Loves-to-Learn

Hi 

Can anyone please help with this extracting stats count by two fields. 

I've below data in each transaction

type                status

A                    200

B                    400

C                    200

B                    200

A                    200

B                    400

A                    500

C                    300

 

I need stats in below format

type              status           count

A                    200                 2

A                   500                  1

B                    200                 1

B                   400                 2                                  

C                 200                   1 

C                 300                   1 

 

Labels (2)
0 Karma

danielcj
Communicator

Hi,

 

Please try the following:

<YOUR_QUERY>
| stats count by type, status
0 Karma
Get Updates on the Splunk Community!

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Transforming Financial Data into Fraud Intelligence

Every day, banks and financial companies handle millions of transactions, logins, and customer interactions ...

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...