I am currently trying to get the date the logs were generated since I only have the date they were processed, I am receiving the logs in log4j xml format. I am unable to convert the UNIX date to this format Sep 22, 2022 @ 14:00:11.475.
This in order to use the creation date of the logs and use it when creating a data view.
MI LOG:
<log4j:event logger="LogGeneratorApp.MainForm" timestamp="1663101248196" level="INFO" thread="1"><log4j:message>This is a test log message</log4j:message><log4j:properties><log4j:data name="log4net:UserName" value="TENARIS\60085367" /><log4j:data name="log4jmachinename" value="TAMP00043541" /><log4j:data name="log4japp" value="LogGeneratorApp.exe" /><log4j:data name="log4net:HostName" value="TAMP00043541" /></log4j:properties><log4j:locationInfo class="LogGeneratorApp.MainForm" method="SendToLog" file="" line="0" /></log4j:event>
MI LOGSTASH:
log creation date
I NEED TO CONVERT THIS:
log processing date
TO THIS: