I am having a sample xml log file like below:
<note date="2017-03-01"> <to>XX</to> <from>YY</from> </note>
I want to parse the above code and want to display the data in an output file like this:
<note> <date> <year>2017</year> <month>03</month> <day>01</day> <date> <to fullName="XX">Destination</to> <from fullName="YY">Source</from> </note>
I am new to ELK framework . I have tried to create logstash config using xpath filters but no luck if anyone help me with sample code means it would be a great help.