Everyone -
I am really new to elk and I have a requirement to parse a very large (~1.9M line) xml file.
In this xml file I want to capture two tag fields and create an timestamp field that all the events that follow will use.
The events in this file are surrounded by tags and are of different line lengths.
I've tried on multiple tries, (for about a week), to parse this file unsuccessfully.
The two fields, I'm trying to capture to be used as a timestamp, is right under the root in the xml file.
TAGS:
ReportStartDate
ReportStartTime
I want to combine the two fields above with a "T" between them, so that the timestamp will look like:
2017-05-30T12:15:00+00:00
Then I need to create events using the timestamp above with data between TAGs <measInfo measInfoId="PNODE"> and </measInfo>
Below is a very small sample of the data I'm trying to parse.
<?xml version="1.0" encoding="UTF-8"?>
<NODES>
<ReportStartDate>2017-05-30</ReportStartDate>
<ReportStartTime>12:15:00+00:00</ReportStartTime>
<OriginalFile>PM201705301232+000048NODE.xml</OriginalFile>
<measData>
<managedElement/>
<measInfo measInfoId="PNODE">
<granPeriod duration="PT900S" endTime="2017-05-30T12:30:00+00:00"/>
<ResultType>"PNODE-1"</ResultType>
<Mif500RespRecRegCtr>0</Mif500RespRecRegCtr>
<SipOrigInviteRecCntr>146</SipOrigInviteRecCntr>
<Mif487RespSentInvCtr>46</Mif487RespSentInvCtr>
...
<SrtpE2aeEnforceCtr>0</SrtpE2aeEnforceCtr>
<RxASAnsSentCntr>0</RxASAnsSentCntr>
<Mif404RespSentInvCtr>0</Mif404RespSentInvCtr>
<MsrpTlsE2aeFailCtr>0</MsrpTlsE2aeFailCtr>
</measInfo>
<measInfo measInfoId="PNODE">
<granPeriod duration="PT900S" endTime="2017-05-30T12:30:00+00:00"/>
<ResultType>"PPNODE-2"</ResultType>
<Mif500RespRecRegCtr>0</Mif500RespRecRegCtr>
<SipOrigInviteRecCntr>1971</SipOrigInviteRecCntr>
<Mif487RespSentInvCtr>468</Mif487RespSentInvCtr>
...
<SrtpE2aeEnforceCtr>0</SrtpE2aeEnforceCtr>
<RxASAnsSentCntr>0</RxASAnsSentCntr>
<Mif404RespSentInvCtr>0</Mif404RespSentInvCtr>
<MsrpTlsE2aeFailCtr>0</MsrpTlsE2aeFailCtr>
</measInfo>
</NODES>
Please let me know what I need to provide for help.
Thanks!