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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...