Splunk Search

XML multivalue field extraction

mzorzi
Splunk Employee
Splunk Employee

My XML file looks like ( I have added spaces for formatting )

< contentOwner>


< gln>113456789< /gln>


< contentOwner>


< gln>1423456791< /gln>


< /contentOwner>


< contentOwner>


< gln>193456795


< /contentOwner>

and I want to extract a single multi event fields GLN=113456789,1423456791,193456795

How can I do that?

Tags (1)
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi mzorzi

I cannot test it, but I would try to use spath with your XML like this

... | spath output=gln path=contentOwner.gln

see spath examples here http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Spath#Examples

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...