Splunk Search

Convert columns to rows

jiaqya
Builder

I have a table like below

A B C

1 2,3,4 Hello

Need a query for which output will be like below
A B C

1 2 Hello
1 3 Hello
1 4 Hello

Split 1 row into different rows based on values in column B

any help ?

Tags (1)
0 Karma
1 Solution

jiaqya
Builder

This did it

|eval B=trim(split(B,","))
|mvexpand B

View solution in original post

0 Karma

jiaqya
Builder

This did it

|eval B=trim(split(B,","))
|mvexpand B

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...