Splunk Search

how to extract payload data (key,value) into table

ramki1459
Explorer

i have data something like this

input:

 

firstname=value1,lastname=value2,email=value3,address=value4.. etc 
firstname=value11,lastname=value12,email=value13,address=value14.. etc 
firstname=value12,lastname=value13,email=value14,address=value15.. etc 

 

output:

 

firstname lastname email address
value1    value2, value3, value4
value11   value12, value13, value14
value12   value13, value14, value15

 

i want to extract this data into a table with keys as column headers. Please note these keys are dynamic and it can have any names.

i tried   

 

search | extract pairdelim="," kvdelim="="

 


but not sure how to put them into a table format. any inputs?

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| table *
0 Karma

ramki1459
Explorer

thank you.

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...