Splunk Search

How to arrange table columns?

spatt
New Member

How do i print the following

service  status  count

Gmdl        200      5

Aesp         200      13

abc           200       8

aesp        501       61

abc            501       22

Gmdl         400       11

 


as

                200        400     501

gmdl      5               11        0

aesp       13             61       0

abc          8              0          22

 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @spatt ,

instead using:

<your_search>
| stats count BY service status  

use

<your_search>
| chart count OVER service BY status  

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

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