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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...