Quick answer

The line pattern must be a valid regular expression.

Log Format Invalid Pattern

The line pattern must be a valid regular expression. Invalid regex (unclosed brackets, bad escapes) causes the validator to report an error.

Common causes

How to fix

Examples

Bad

^[\w+

Good

^[\w+\]\s+.+$

FAQ

What format does Log Format Validator expect?
A regex pattern that each log line should match. E.g. ^\[\w+\]\s+.+$ for [LEVEL] message.

Fix it now

Try in validator (prefill this example)

All tools · Canonical