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
- Unclosed bracket or parenthesis in the regex.
- Invalid escape sequence.
How to fix
- Balance all ( ) [ ] in the regex.
- Test the pattern in Regex Tester first.
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)