Getting Data In

How to split multiple data of same column into different columns

shrutip123
Observer

I have one column with data entries like below -
column_1

a=123, b= 888, c=645,d=6328

a=6734, f=876, h=6666

 

I want the result as -

field_1             field_2
a                            123
b                             888
c                             654
d                             6328
a                              6734
f                                876
h                               6666


Thanks

0 Karma

to4kawa
Ultra Champion

| rex max_match=0 field=column_1 "(?<name>\w)=(?<data>\d+)"
| stats list(name) as field_1 list(data) as field_2

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Detection Engineering Office Hours: Real-World Troubleshooting & Q&A

[REGISTER HERE] This thread is for the Community Office Hours session on Detection Engineering Office Hours: ...

Developer Spotlight with Mika Borner

From Hackathon Winner to Enterprise Leader    Mika Borner, CEO and Founder of Datapunctum AG, has been ...

Continue Your Federation Journey: Join Session 3 of the Bootcamp Series

To help practitioners build a stronger foundation, we launched the Data Management & Federation ...