Splunk Search

XML: Extract field and assign to multiple events

a1352019
Engager

I'm attempting to read in an XML file in the following format:

<a> data </a>
<q> other data </q>
   <b> item </b>
      <i> item data </i>
      <p> more item data </p>
   <b> another item </b>
      <i> item data </i>
      <p> more item data </p>
   <b> yet another item </b>
      <i> item data </i>
      <p> more item data </p>

I've managed to modify the props.conf to split the xml and read in each 'b' item (and it's children) as a separate event.

What I'm stuck on is extracting the data held within the 'a' and 'q' tags and assigning that to every event that is received below it.

Is this possible?

gelica
Communicator

Did you solve this? 🙂

0 Karma

Ayn
Legend
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...