Fantastic, thank you.
Cheers si
From: Ken Schweigert <[EMAIL PROTECTED]>
Reply-To: Support for analog web log analyzer <[email protected]>
To: Support for analog web log analyzer <[email protected]>
Subject: Re: [analog-help] Apache
Date: Fri, 13 May 2005 13:35:35 -0400
MIME-Version: 1.0
Received: from lists.meer.net ([209.157.153.17]) by mc8-f36.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 13 May 2005 10:41:32 -0700
Received: from lists.meer.net (localhost [IPv6:::1])by lists.meer.net (8.12.11/8.12.11) with ESMTP id j4DHZf7i046671;Fri, 13 May 2005 10:36:25 -0700 (PDT)(envelope-from [EMAIL PROTECTED])
Received: from mail.bytepro.net(IDENT:[EMAIL PROTECTED] (may be forged))by lists.meer.net (8.12.11/8.12.11) with ESMTP id j4DHZcGi046667for <[email protected]>; Fri, 13 May 2005 10:35:39 -0700 (PDT)(envelope-from [EMAIL PROTECTED])
Received: (qmail 6368 invoked by uid 89); 13 May 2005 17:31:20 -0000
Received: from unknown (HELO localhost.localdomain) (63.149.22.66)by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP;13 May 2005 17:31:20 -0000
Received: from localhost.localdomain (ken [127.0.0.1])by localhost.localdomain (8.12.8/8.12.8) with ESMTP id j4DHZagV003050for <[email protected]>; Fri, 13 May 2005 13:35:36 -0400
Received: (from [EMAIL PROTECTED])by localhost.localdomain (8.12.8/8.12.8/Submit) id j4DHZZDn003048for [email protected]; Fri, 13 May 2005 13:35:35 -0400
X-Message-Info: jl7Vrt/mfson3MHw5fAdC91/LwTJY4jZKE0fzSahvBY=
References: <[EMAIL PROTECTED]><[EMAIL PROTECTED]>
User-Agent: Mutt/1.4.1i
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Support for analog web log analyzer <analog-help.lists.meer.net>
List-Unsubscribe: <http://lists.meer.net/mailman/listinfo/analog-help>,<mailto:[EMAIL PROTECTED]>
List-Archive: <http://lists.meer.net/pipermail/analog-help>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <http://lists.meer.net/mailman/listinfo/analog-help>,<mailto:[EMAIL PROTECTED]>
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 13 May 2005 17:41:32.0538 (UTC) FILETIME=[005F85A0:01C557E3]
On Fri, May 13, 2005 at 04:19:54PM +0000, simon stratford wrote:
> CustomLog /usr/local/apache/logs/access_log combined env=!dontlog
>
> Do I issure the above on the command line? I tried it and it said that the
> event wasnt found. Its deffo on in the httpd.conf does this have to be in a
> particular place?
>
> ss
This directive goes inside your httpd.conf file and inside of a <VirtualHost>
block. You should see something like:
<VirtualHost 11.22.33.44>
DocumentRoot /usr/local/apache/htdocs/mydomain
ServerName www.mydomain.org
ServerAlias mydomain.org
SetEnvIf Request_URI ".*\/0.?\.gif$" dontlog
CustomLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/mydomain/access_log 86400" combined env=!dontlog
ErrorDocument 404 /404.php
</VirtualHost>
HTH.
-ken
>
> >From: Ken Schweigert <[EMAIL PROTECTED]>
> >On Fri, May 13, 2005 at 02:00:07PM +0000, simon stratford wrote:
> >> Little bit off topic but my logfiles are filling up my server at an
> >> alarming rate (800 meg for two weeks), I`m not much use on Apache, so
> >can
> >> someone give me an idiots guide to stop loggin images and style sheets
> >etc.
> >>
> >> I`ve edited the httpd.conf files and added
> >>
> >> SetEnvIf Request_URI "\.gif$" dontlog
> >>
> >> Then rebooted but it appears to still be loggin gif images. I don't need
> >> .js, .css, .jpg
> >>
> >> Any help would be great.
> >
> >You also need to modify the virtual's CustomLog directive. Something like:
> >
> >CustomLog /usr/local/apache/logs/access_log combined env=!dontlog
> >
> >--
> >Ken Schweigert, IT Department
> >Byte Productions, LLC
> >http://www.byte-productions.com
--
Ken Schweigert, IT Department
Byte Productions, LLC
http://www.byte-productions.com
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------
+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------

