I am sending error and fatal logs, these have multiple lines, so the multiline is configured like this:
filebeat multiline:
This is throwing me an error:
my error and fatal log have this structure:
<log4j:event logger="LogGeneratorApp.MainForm" timestamp="1664208384844" level="ERROR" thread="1"><log4j:message>This is a test log message</log4j:message><log4j:properties><log4j:data name="log4net:UserName" value="TEN\60085367" /><log4j:data name="log4jmachinename" value="TAMP00043541" /><log4j:data name="log4japp" value="LogGeneratorApp.exe" /><log4j:data name="log4net:HostName" value="TAMP00043541" /></log4j:properties><log4j:throwable>System.Exception: This is a test log message
en LogGeneratorApp.MainForm.SendToLog(String level, String message)</log4j:throwable><log4j:locationInfo class="LogGeneratorApp.MainForm" method="SendToLog" file="" line="0" /></log4j:event>
and in kibana I can see that the log sends it like this:
part 1:
par2:
Note in the image that the first line and the second are sent separately.
This happens to me when I send two fatal or two errors or a fatal and an error from different apps.
If I only send from one, I have no problems.