I'm evaluating LogMX and I am having trouble with parsing a debug log for Kerio Connect. Sometimes the logs run over two lines, sometimes three, and sometimes four. I can't figure it out with regex and can't find the fields that are supported by Log4j format.
Here is a sample of the log:
Code: Select all
[10/01/2020 12:57:46.718](15328){dbg}{database} In DbServer\DatabaseOperations.cpp:353 (DatabaseOperations::initializeCommonDatabase)
[#1] (B1CB) New common database created, signature is {95F6754B-F809-4854-A847-
[10/01/2020 12:57:46.733](23592){err}{mapi-interface} In StoreProvider\MSProviderImpl.cpp:452 (MSProviderImpl::Logon)
[#1] (common) Exception of class HResultException: StoreProvider\MSProviderImpl.cpp(371), MSProviderImpl::Logon:
0x8004011c MAPI_E_UNCONFIGURED
[10/01/2020 12:57:50.546](15328){err}{communication} In SCProvider\NtlmAuthenticator.cpp:111 (PocoNtlmAuth::sendResponseGetChallenge)
[#2] (common) NTLM authentication has been unsuccessful
Code: Select all
\[(\S+ \S+)\]\s?\((\d+?)\)\s?\{(.*?)\}\s?\{(.*?)\}\s?In\s?(.*?)\n([\S\s]*?[^\[]*)
Built-in fields
Timestamp: [10/01/2020 12:57:46.733] (not including the square brackets
Level: {err} (not including the curly brackets)
Emitter: {mapi-interface} (not including the curly brackets)
Message: [#1] (common) Exception of class HResultException: StoreProvider\MSProviderImpl.cpp(371), MSProviderImpl::Logon:
Custom fields:
Process ID: (15328) (without the brackets)
Location: In StoreProvider\MSProviderImpl.cpp:452 (without the word 'in' at the beginning)
Error Code: 0x8004011c (these error codes always start with '0x'
Error Type: MAPI_E_UNCONFIGURED (always follows the error code)
Thanks for any help.
Rod