Re: Cleaning up httpd access logs


Subject: Re: Cleaning up httpd access logs
From: Ken Schweigert (ken@byte-productions.com)
Date: Sat Dec 22 2001 - 10:45:59 MST


Zeke,

The -v will do an inverse-match. In this case, it will match everything
that does not have ".exe" in the entry. Now all you have to do is
redirect the output to another file.

  [ken@byte-8 logs]$ fgrep -v .exe > access_log_no_exe

If you're satisfied with the results, you can remove the original log
file and rename the new one to the origianl.

Hope that helps.

-ken schweigert

On Sat, Dec 22, 2001 at 12:07:41PM -0500, Zeke Runyon wrote:
>
> On Friday, December 21, 2001, at 11:13 PM, Paul J. Lucas wrote:
>
> > fgrep -v .exe
>
> How do you use this to delete the odd requests from the logfile?
>
> ##
> # Zeke Runyon | zrunyon@mac.com | zekeworld.home.dhs.org
> # blog: communistsquirrel.home.dhs.org
> # Mac OS X 10.1.1 5M28 | OS 9.2.1 | Yellow Dog Linux 2.1
> # Communist squirrels shall rule the world.

-- 
-Ken Schweigert, Aspiring Network Administrator
Byte Productions, LLC
http://www.byte-productions.com



This archive was generated by hypermail 2a24 : Sat Dec 22 2001 - 10:59:18 MST