From fbbc0f0c766ce42c3f2b487e2154603ee5b7e007 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Thu, 8 Sep 2016 19:46:40 +0000 Subject: community/syslog-summary: new aport https://github.com/dpaleino/syslog-summary Summarize the contents of a syslog log file / useful with logcheck Patched to support: - new thread safe version of python-magic - socklog --- community/syslog-summary/03-socklog-compat.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 community/syslog-summary/03-socklog-compat.patch (limited to 'community/syslog-summary/03-socklog-compat.patch') diff --git a/community/syslog-summary/03-socklog-compat.patch b/community/syslog-summary/03-socklog-compat.patch new file mode 100644 index 0000000000..288fb8ce9d --- /dev/null +++ b/community/syslog-summary/03-socklog-compat.patch @@ -0,0 +1,14 @@ +--- syslog-summary-1.14/syslog-summary ++++ syslog-summary-1.14/syslog-summary.new +@@ -43,6 +43,11 @@ + from optparse import OptionParser + + datepats = [ ++ # 1st => runit / svlogd || svlogd -t || -tt || -ttt ++ re.compile(r"^[\@\.\-\:\_ A-Za-z0-9]{0,26}?(\w+[.]\w+): \w+[ :0-9]{12} "), ++ # 2nd & 3rd => digit dates / mysql error logs ++ re.compile(r"^([- 0-9]{10} {1,2}[:0-9]{7,8})([ 0-9]{16})? "), ++ re.compile(r"^(InnoDB:|Tcp|Time.*Argument|Version:|mysqld,) "), + re.compile(r"^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [ 0-9][0-9] [ 0-9][0-9]:[0-9][0-9]:[0-9][0-9] "), + re.compile(r"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [ 0-9][0-9][0-9][0-9]:[0-9][0-9] "), + re.compile(r"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [ 0-9][0-9][0-9][0-9]:[0-9][0-9]:[0-9][0-9] "), -- cgit v1.2.3