Re: Executing external command on specific log pattern

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux