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
Get Updates on the Splunk Community!

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...

Cisco Catalyst Center Meets Splunk ITSI: From 'Payments Are Down' to Root Cause in ...

The Problem: When Networks and Services Don't Talk Payment systems fail at a retail location. Customers are ...