Hello,
I've an issue that I don't understand why I have it...
Here is the example:
Log line to parse:
2017-12-21 20:26:29.253;TEST;5236;10792;General;Information;-1; METHODE=EnvoyerDoc.Mlbx_SendMailSmtpEx RETOUR=0 MEDIA= STATUS=>OK< DEST=10|529758|1|µL_DocumentTypeCRIµ;EXPERT SYST;099999999-GP1L;S00000001;VIA010000;20305;;TOTO + COM|ft-ct@mail.com|EXPERTSYST|
Grok pattern currently used:
%{LOGDATEFORMAT:LogDate}%{SEMICOLON_DELIMITER}%{GREEDYDATA:Machine}%{SEMICOLON_DELIMITER}%{GREEDYDATA:ProcessID}%{SEMICOLON_DELIMITER}%{GREEDYDATA:Win32Thread}%{SEMICOLON_DELIMITER}%{GREEDYDATA:LogCategory}%{SEMICOLON_DELIMITER}%{GREEDYDATA:LogSeverity}%{SEMICOLON_DELIMITER}%{NUMBER:Priority}%{SEMICOLON_DELIMITER}%{GREEDYDATA:LogMessage}
With the two following specific patterns:
SEMICOLON_DELIMITER ;
LOGDATEFORMAT %{YEAR}[./-]%{MONTHNUM}[./-]%{MONTHDAY} %{TIME}
The log line is not correctly parsed by the Grok pattern and here is the result:
{
"LogDate": [
[
"2017-12-21 20:26:29.253"
]
],
"Machine": [
[
"TEST;5236;10792;General;Information;-1; METHODE=EnvoyerDoc.Mlbx_SendMailSmtpEx RETOUR=0 MEDIA= STATUS=>OK< DEST=10|529758|1|µL_DocumentTypeCRIµ"
]
],
"ProcessID": [
[
"EXPERT SYST"
]
],
"Win32Thread": [
[
"099999999-GP1L"
]
],
"LogCategory": [
[
"S00000001"
]
],
"LogSeverity": [
[
"VIA010000"
]
],
"Priority": [
[
"20305"
]
],
"LogMessage": [
[
";TOTO + COM|ft-ct@mail.com|EXPERTSYST| "
]
]
}
The result expected for the field LogMessage is the following:
LogMessage => "METHODE=EnvoyerDoc.Mlbx_SendMailSmtpEx RETOUR=0 MEDIA= STATUS=>OK< DEST=10|529758|1|µL_DocumentTypeCRIµ;EXPERT SYST;099999999-GP1L;S00000001;VIA010000;20305;;TOTO + COM|ft-ct@mail.com|EXPERTSYST|"
Just for information, some lines on my log are like the one present above.
But this Grok pattern works with other lines!
Anyone have an explanation on this point?
Thank you in advance for your help!
Stephane