1 |
I finally got my hands on the subject, but I am not in a position to |
2 |
play with regular expression. |
3 |
|
4 |
REGEX: |
5 |
#failregex = USER \S+: no such user found from \S* ?\[<HOST>\] to \S+\s*$ |
6 |
|
7 |
This captures only this kinds of logs on auth.log: |
8 |
#Aug 6 22:25:59 fileserver proftpd[18234]: fileserver.mzalendo.net |
9 |
(202.102.135.54[202.102.135.54]) - USER !@#$%^&*: no such user found |
10 |
from 202.102.135.54 [202.102.135.54] to 192.168.1.34:21 |
11 |
|
12 |
It misses this: |
13 |
#Aug 7 20:47:18 fileserver proftpd[23323]: fileserver.mzalendo.net |
14 |
(gendesktop.mzalendo.net[192.168.1.33]) - USER mysql (Login failed): |
15 |
Incorrect password. |
16 |
|
17 |
Anyone with a smarter regex and interested to share it with me? |
18 |
I will see if I can learn regex and try to manipulate this expressions. |
19 |
|
20 |
Thanks |
21 |
|
22 |
GR |
23 |
mrfroasty |
24 |
|
25 |
-- |
26 |
Extra details: |
27 |
OSS:Gentoo Linux |
28 |
profile:x86 |
29 |
Hardware:msi geforce 8600GT asus p5k-se |
30 |
location:/home/muhsin |
31 |
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS |
32 |
Typo:40WPM |
33 |
url:http://www.mzalendo.net |