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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...