Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

multiline parser example for java logs matches wrong part with brackets #636

Open
alexlehm opened this issue May 3, 2019 · 0 comments
Open

Comments

@alexlehm
Copy link

alexlehm commented May 3, 2019

When the log message contains square brackets, the multiple parser example for java logs matches too much into the thread field, this should be like this:

format1 /^(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<thread>[^\]]*)\] (?<level>[^\s]+)(?<message>.*)/

the thread pattern should not allow a close square bracket

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant