Fail2ban dorsn work with *error_log

Discussion in 'Technical' started by baldur2630, Jun 3, 2011.

  1. baldur2630

    baldur2630 Member

    I have 4 Virtual name-based hosts on my CentOS 5.6 server.

    Each one has itś own error_log in /var/log/httpd

    If I do fail2ban-regex '/var/log/httpd/*error_log' '/etc/fail2ban/filter.d/apache-pma.conf' I get no results. if I do fail2ban-regex '/var/log/httpd/server1-error_log' '/etc/fail2ban/filter.d/apache-pma.conf' I get lots of results.

    I have *error_log in my Jail.conf and that isn't working, but if I change this to server1-error log, it works fine, but then server2, server3 and server4 aren;t using fail2ban at all.

    What is going on here - any ideas?
     

Share This Page