Splunk Search

How to get Field values as column names/headers in the table output

poddura
Observer

Hi Team,

I have a simple requirement but unable to get it. I am using a query

index=tms sourcetype=kafka type=ssh| stats count by NETYPE

For above query I am getting output as below

NETYPECount
CISCO100
JUNIPER200

 

However, I want output as

CISCOJUNIPER
100200

 

Can you please help how can I get above o/p table

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| transpose 0 header_field=NETYPE
| fields - column
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...