syslog4j-graylog2
syslog4j-graylog2 copied to clipboard
Fix FortiGate regex parsing fields
Fix for Graylog2/graylog2-server#3854
Replaced existing KV_PATTERN and QUOTED_KV_PATTERN with a single regex reusing them with (?:|), it matches both quoted and unquoted fields and avoids creating erroneous fields when the log message has a URL filed like url="/test?field=value".
There's also a "Invalid Fortigate syslog message" exception thrown if the log mesage contains a new line, because of the PRI_PATTERN regex, added a fix for that also.