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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...