All Apps and Add-ons

classic SQL pivot in splunk

andreafebbo
Communicator

Hi
I need to do a classic pivoting in splunk but I cannot find a solution.

I have the first table in the following image and it have to become like the second table.

Of course the families and the name are dinamically generated at run time.
The columns 1st rank, 2nd rank and 3rd rank can have a fixed name.

alt text

Thanks a lot

1 Solution

renjith_nair
Legend

Try this

<your base search to result first table> |xyseries family rank name

OR

<your base search to result first table>|chart values(name) over family by rank
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Try this

<your base search to result first table> |xyseries family rank name

OR

<your base search to result first table>|chart values(name) over family by rank
---
What goes around comes around. If it helps, hit it with Karma 🙂

andreafebbo
Communicator

This is exactly what I needed!
Thanks a lot!

0 Karma
Get Updates on the Splunk Community!

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened Audit Trail v2 wasn’t written in isolation—it was shaped by your voices. In ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...