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
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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...