Splunk Search

Help in field extraction/transformation

timgren
Path Finder

I have a JSON log entry with  key-value pairs within the field component. I'm trying to transform the field into sub-fields using the key-value pairs. 

Example:

"msg":{"additionalValues":"{responseTime=137, synapseTag=None, serviceName=switching-integration, uri=com.bigcompany.switching, responseCode=200}", <more fields>,...}

For Splunk,  I can pull one field, referenced as "msg.additionalValues". But I can't seem to transform the KVP's within that field into sub-fields.  (such as "msg.additionalvalues.responseTime", and msg.additionalvalues.synapseTag, etc ) 

Any ideas? 

 

Labels (1)
Tags (2)
0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @timgren 

It looks like the solution in other post might satisfy your requirement. Solved: Re: How to extract fields from child node - Splunk Community 

-------------------------------------------------------------

An upvote would be appreciated if it helps!

0 Karma

timgren
Path Finder

Well, Not really as that is an inline rex of known fields, not a transformation of subfields which can be a variety of names.  But thanks. A transformation at time of ingestion is what I'm after. 

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...