top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

fail2ban with standard Apache log format on centos

+1 vote

I want to use fail2ban on CentOS 6 to monitor Apache with the standard default logfile format ("combined"). Has anyone here succeeded in doing so?

The format has the IP at the start of the line, followed by two dashes (if no authentication) and THEN the timestamp. What I've read on the fail2ban wiki seems to say that the timestamp must ALWAYS be at the start of the line, followed by other stuff. I'm amazed if it isn't configurable...

I'm using fail2ban 0.8.8 from EPEL.

posted Jun 19, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
OK, it turns out that despite what it says in the wiki, recent versions of fail2ban do allow a non-anchored timestamp match and will preserve the part of the line before the timestamp. My problem was actually in the failregex.

All working now.

Similar Questions
0 votes

I am using CentOS 6.0 with Apache 2.2.15, and set up Apache with virtual host. The SSI works fine on the first VH, but ssi on the other virtual hosts does not work. I got the following message in the error log:

mod_include: Options +Includes (or IncludesNoExec) wasnt set, INCLUDES filter removed

Does anyone know how to resolve this problem?

+2 votes

My Apache server host few applications something like :


I would like to trace access for a specific application, eg. A. Is it possible?

Or should I use 'LogLevel info' and so log all applications into access.log file (then parsing for specific web page) ?

My config for logging is :

ErrorLog /var/log/apache2/error.log
LogLevel info
CustomLog /var/log/apache2/access.log combined
0 votes

I am running a server with CentOS release 6.4 (Final) and the kernel version of 2.6.32-279.19.1.el6.x86_64 and everything looks ok, but when I do a yum update on the kernel to update it to a newer version "2.6.32-358.11.1.el6".

It will not restart after the required reboot. It will start to load until the task bar at the bottom gets to the end than it stops loading I have been patient with it unless it requires more time to start but after 10min it was still just sitting at the task bar.

This is a VM machine so I just revert to a previous snapshot, but what should I be looking for that would cause this, and how should I fix it?

+1 vote

Need some help here, want to replace the standard 503 page of Apache with my custom maintenance page. Read some blogs which gives direction of replacing the page with my html page and just do some rewrite of URL to display it.with help of .htaccess.

I am not able to find the .htaccess file on the server, could some one please help me on that, where is htaccess file by default on the server.

Could some body also suggest if there is any other solution to achieve maintenance page.

Useful Links with Similar Problem
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.