I am trying to take certain parts of an xml document and split it into different events that I can look at separately in Kibana. Here is a sample xml document here.
<?xml version="1.0"?> <Report> <company>some company</company> <address>some address</address> <employees> <file> <name>Bill Smith</name> <position>Crew Member</position> </file> <file> <name>John Doe</name> <position>General Manager</position> </file> </employees> </Report>
I would like to get 3 different events out of this. One event that has the beginning tags. company and address. and two other ones which each contain the tags within the file tag, so two other events each with name and position. Also if possible, each of the two events would ideally also have the information from the first event.