Parsing EventData field correctly from json input


I'm new to using ELK. I'm looking for some help to properly parse the EventData field from my windows logs. Here's an example event:

<Event xmlns="">
<Provider Name="XXXXXX" />
<EventID Qualifiers="0">20</EventID>
<TimeCreated SystemTime="2020-01-09T16:31:32.928992200Z" />
<Security />
<Data><SUI> <OU>XXX</OU> <UID>XXXXX</UID> <COMP>XXX-XXX-XXX</COMP> </SUI> <PDMessage> <Message>Some message</Message> <DateTime>00:00:05.5298444</DateTime> </PDMessage></Data>

I'm using nxlog to ship the events from my system to Logstash. The nxlog conf is set to convert the event logs to json format and ship it out.

Is there a way on Logstash to properly extract the fields within EventData? EventData values differ for different events - it may have more/fewer tags within it.

Here's the Logstash config I'm using:

I'd really appreciate some help with this. Thanks!

Use an xml filter.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.