Splunk Search

How to combine two different columns in a table into a single column?

Rukmani_Splunk
Path Finder

I have table as below generated from splunk

     C:x  D:x  E:x  F:x  C:y  D:y  E:y  F:y
A    2    1    0    3    5    6    7    8
B    0    2    8    9    0    8    9    0

I want to get a table as below

       C           D           E           F
A   X:2 Y:5     x:1,Y:6     x:0 Y:7     x:3 Y:8
B   X:0 Y:0     X:2,Y:8     x:8 y:9     x:9 Y:0

Please help me in getting this. Thanks in advance

Tags (3)
0 Karma

somesoni2
Revered Legend

Give this a try (assuming first

your current search giving output1 | untable column1 Metrics Data| rex field=Metrics "(?<Metrics>[^:]+):(?<Term>.+)" | eval Data=Term.":".Data | chart values(Data) over column1 by Metrics
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...