httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Carmen <te...@cnysupport.com>
Subject Re: [users@httpd] Executing external command on specific log pattern
Date Tue, 30 Oct 2012 14:47:55 GMT
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


Mime
View raw message