Hi all.
I have the following XML file format:
<?xml version="1.0" encoding="UTF-8"?>
<Object id="1" MUID="XXXX" GUID="XXXXXX2">
<Attribute name="Others" value="---"/>
<Attribute name="Module name" value="Anforderungen_von_AbC_und_AbP_an_ORC"/>
<Attribute name="fullName" value="xxxxxxxxxxxx"/>
<Attribute name="ModuleUniqueID" value=""/>
<Attribute name="Last Modified On" value="04/16/18 16:57:49"/>
<Attribute name="ModuleType" value="CRS"/>
<Attribute name="Current Date" value="06/29/18 06:47:55"/>
</Object>
<Object id="1" MUID="XXXX" GUID="XXXXXX3">
<Attribute name="Others" value="---"/>
<Attribute name="Module name" value="Anforderungen_von_AbC_und_AbP_an_ORC"/>
<Attribute name="fullName" value="xxxxxxxxxxxx"/>
<Attribute name="ModuleUniqueID" value=""/>
<Attribute name="Last Modified On" value="04/16/18 16:57:49"/>
<Attribute name="ModuleType" value="CRS"/>
<Attribute name="Current Date" value="06/29/18 06:47:55"/>
</Object>
I have liked to give a custom ID to each of this object while indexing it into elasticsearch. The ID should be a combination of the Last Modified On + Object GUID. I'm not the Logstash expert, so it's why i'm asking here if some one can give me a small tip on how to realise it. I'm pretty sure it can be made with the Ruby plugin or the XML plugin but not sure what exactly to do.
PS: The attributes are very dynamic, the order is not always the same.
Cheers.