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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...