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?


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


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 can 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 managers

Lock a mutex multiple times in the same thread


How to profile my C++ application on linux
There seems to be no direct way to do 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: .

62 out of 100 based on 57 user ratings 832 reviews