Splunk Enterprise

Columns to rows and count

Atif
Explorer

Dear Splunkers,

 

The result of my search is like :

TXID,STATUS_A,STATUS_B,STATUS_C

A,OK,OK,OK

B,OK,KO,INPROGRESS

C,OK,OK,KO

D,OK,KO,KO

E,KO

 

Transaction E has no STATUS_B nor STATUS_C fields

What i'am trying to get is a count over all STATUS columns :

STATUS_NAME,OK_COUNT,KO_COUNT,INPROGRESS_COUNT

STATUS_A,4,1,0

STATUS_B,2,2,0

STATUS_C,1,2,1

 

Any hints are welcome.

Thank you

 

Labels (1)
Tags (4)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| untable TXID status result
| stats count by status result
| xyseries status result count

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| untable TXID status result
| stats count by status result
| xyseries status result count
Get Updates on the Splunk Community!

Index This | A sphere has three, a circle has two, and a point has zero. What is it?

September 2023 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...