Thank you for your answer,
I understand the preference for logs with the same format, but sadly that is not always the case. I have no freedom to modify these logs.
From your proposed options, the way I see it, and if I understand correctly:
1. Extracting File Name and Line columns with a message parser. This would do the trick, although subptimal to do two parsing steps.
2. Using Multi-pattern. This one is more optimal but looses a bit of information, since it skips the firts key value pair.
For me 2. is unacceptable since I need that bit of information. Then 1 would have to do.
Although, ideally (and I don't know how the parsing logic goes), and assuming the following:
- We know which is the start of line token
%d{dd/MM/yy-%H:mm:ss.ffffff}
- We know which is the end of line token
]%n
- We know where is themain content of the line
%m
This could be solved cleanly by taking
%m as a pivot point for parsing and
- Parse all tokens at the left of
%m from
left to right.
- Parse all tokens at the right of
%m form
right to left.
- Once we parsed all tokens,
%m is whatever remains.
Anyways, I'll get my license, since this is a great piece of software, wish it was cross platform though.