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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...