[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Executing external command on specific log pattern
From:       Terry Carmen <terry () cnysupport ! com>
Date:       2012-10-30 14:47:55
Message-ID: 508FE89B.301 () cnysupport ! com
[Download RAW message or body]

On 10/30/2012 05:32 AM, Youssef Eldakar wrote:
> Looking to implement an "On GET <regex>, execute external command" 
> scenario. What would be the recommended approach? Is it possible to 
> define sort of a log event handler in Apache? Or is a standalone 
> daemon to periodically poll the access log the best answer?
>
> Thank you for any suggestions.
>
> Youssef Eldakar
> Bibliotheca Alexandrina


fail2ban will do what you want.

It's typically used to add firewall rules based on logged events, but 
could easily be configured to do whatever you want.

Terry



-- 


Terry Carmen
CNY Support, LLC
http://cnysupport.com
Web. Database. Business.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic