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!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...