aports/community/syslog-summary/03-socklog-compat.patch
Stuart Cardall fbbc0f0c76 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
2016-09-21 12:14:32 +02:00

15 lines
884 B
Diff

--- 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] "),