Dashboards & Visualizations

XML Transformation

varun85negi
Engager

Hi,

I have a XML file with below format:

Header
Parent1
Child1
Child1
Child1
Parent2
Child2
Child2
And So on.
There can be 100K Children under a parent.

Problem is parent child correlation is based on the format of the xml, but when events are indexed in splunk (child and parent separately) there is no way to find the parent for a child (ParentId is not present in Child events).

Is there any way we can enrich the children with the parentId while file is getting indexed.

Thanks,
Varun Negi

0 Karma

niketn
Legend

@varun85negi, exact structure of parent and child node/s will be required for us to assist you better as you need to parse and split event before indexing based on regular expression. Do each of Parent Nodes have timestamp field as one of their child node? If not whether there is a node in Header for time or can it be random node?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

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

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 ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...