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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...