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!

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...