diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-09-08 19:46:40 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-21 12:14:32 +0200 |
commit | fbbc0f0c766ce42c3f2b487e2154603ee5b7e007 (patch) | |
tree | 35d2b1bff79c4e2c0af74caae2eda6b8075e51fd /community/syslog-summary/03-socklog-compat.patch | |
parent | febfba2695645c8b0c49f23e9ea59aac5bf405e9 (diff) | |
download | aports-fbbc0f0c766ce42c3f2b487e2154603ee5b7e007.tar.bz2 aports-fbbc0f0c766ce42c3f2b487e2154603ee5b7e007.tar.xz |
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
Diffstat (limited to 'community/syslog-summary/03-socklog-compat.patch')
-rw-r--r-- | community/syslog-summary/03-socklog-compat.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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] "), |