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!

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...