Fail2Ban - Log to mysql


Fail2Ban - Log to mysql



We have a few servers with SSH public (using sFTP). Obviously, the attacks ar too many.

We want put the banned logs into a MySQL DB for make stats and etc.

Have anyone tryied this?

Thanks


Is there any way to get the combine two xml into one xml in Linux

1:

How do I know which illegal address the program access when a segmentation fault happens
Fail2SQL - An SQL logger for Fail2Ban. Constructing a function call in C Fail2SQL is called by Fail2Ban and logs information to a MySQL database including geographical location and total ban count. Java socket bug on linux (0xFF sent, -3 received)This information must then be used in reports, graphs or by third party programs to take further action such as permanent blocking, reporting to ISP etc.. sendmail working but PHP mail() is failing
How do I stop/workaround Java apps stealing focus in Linux window managersLock a mutex multiple times in the same thread

2:

How to profile my C++ application on linux
There seems to be no direct way to did this. You will have to write a script to parse the fail2ban logfiles and insert IP's and bantimes into a mysql table. I found one here: http://blog.dp.cx/25/postfix-fail2ban-win .


92 out of 100 based on 67 user ratings 362 reviews

*