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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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