HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Regex layout of apache log? (http://www.howtoforge.com/forums/showthread.php?t=48744)

fordwrench 13th September 2010 06:10

Regex layout of apache log?
 
what is the regex for the apache log file at /var/log/httpd/ispconfig_access_log

I have installed blockhosts and I am trying to setup a regex pattern to scan the logs and block ip asking for a particular pattern.
Mainly the line that follows:


www.mydomain.com||||1181||||120.140.74.198 - - [11/Sep/2010:00:06:32 -0500] "GET /.cod6xo/?action=captcha&a=get&i=45069&v=21 HTTP/1.0" 404 1181 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)"

Can anyone help. TIA

Fordwrench

fordwrench 14th September 2010 04:25

Can anyone help me with this?

falko 14th September 2010 14:25

What's the regexp that's currently being used in your /etc/blockhosts.cfg?


All times are GMT +2. The time now is 18:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.