Added testcase for MySQL date format to testcases/datedetectortestcase.py

and example of MySQL log file.
pull/152/head
Artur Penttinen 12 years ago
parent 29d0df58be
commit edc0eb2a9c

@ -68,6 +68,7 @@ class DateDetectorTest(unittest.TestCase):
"2005.01.23 21:59:59",
"23/01/2005 21:59:59",
"01-23-2005 21:59:59.252", # reported on f2b, causes Feb29 fix to break
"050123 21:59:59", # MySQL
):
log = sdate + "[sshd] error: PAM: Authentication failure"
# exclude

@ -0,0 +1,17 @@
130323 21:14:28 [Warning] Access denied for user 'root'@'192.168.1.34' (using password: NO)
130324 0:04:00 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: NO)
130324 0:04:02 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:05 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:07 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:09 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:11 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:13 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:16 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 0:04:18 [Warning] Access denied for user 'root'@'192.168.1.35' (using password: YES)
130324 8:24:09 [Warning] Access denied for user 'root'@'220.95.238.171' (using password: NO)
130324 17:56:13 [Warning] Access denied for user 'root'@'61.160.223.112' (using password: NO)
130324 17:56:14 [Warning] Access denied for user 'root'@'61.160.223.112' (using password: YES)
130324 17:56:15 [Warning] Access denied for user 'root'@'61.160.223.112' (using password: YES)
130324 19:01:39 [Warning] Access denied for user 'root'@'61.147.108.35' (using password: NO)
130324 19:01:40 [Warning] Access denied for user 'root'@'61.147.108.35' (using password: YES)
130324 19:01:41 [Warning] Access denied for user 'root'@'61.147.108.35' (using password: YES)
Loading…
Cancel
Save