From f476f904dbd7d4f3581f75429f628ff37fe4c709 Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal Date: Sat, 30 May 2015 22:44:41 -0700 Subject: [PATCH] [syslog_log] Case-insensitive search for level strings While looking through syslog messages on OS X, came across plenty of error/warning messages where the level was in all-caps and as a result were not recognized. There was also a lot of false positives due to the word error turning up as part of a longer string. This change: - Changes the log level regex to do a case-insensitive search. - Ognores the string 'error', if it is part of a longer string. --- src/default-log-formats.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/default-log-formats.json b/src/default-log-formats.json index 62d52624..df0cf688 100644 --- a/src/default-log-formats.json +++ b/src/default-log-formats.json @@ -586,8 +586,8 @@ }, "level-field" : "body", "level" : { - "error" : "(?:failed|failure|error)", - "warning" : "(?:warn|not responding|init: cannot execute)" + "error" : "(?:(?:(?