 |
|
 |
|
Next: 2.0.40 apache: upgrading to 2.0.47 or what
|
| Author |
Message |
External

Since: Sep 25, 2003 Posts: 3
|
(Msg. 1) Posted: Thu Sep 25, 2003 1:58 pm
Post subject: Log file question Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi,
I'm new at apache and I couldn't figure out by the doc the config so that
the requests for image files *.gif, *.jpg, etc are not logged.
Right now when a page is requested it gives me one line for each image which
makes the log file huge and hard to read.
Also, what is the best and easiest program to manage log files.
TIA
Mike
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003 >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Oct 04, 2003 Posts: 21
|
(Msg. 2) Posted: Thu Sep 25, 2003 7:27 pm
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
M.I. said:
> Hi,
>
> I'm new at apache and I couldn't figure out by the doc the config so that
> the requests for image files *.gif, *.jpg, etc are not logged.
> Right now when a page is requested it gives me one line for each image which
> makes the log file huge and hard to read.
> Also, what is the best and easiest program to manage log files.
> TIA
>
> Mike
>
>
Add env=!dontlog to the end of your logfile as in the ex below
CustomLog logs/combined.log combined env=!dontlog
and add lines like this to not log
SetEnvIf Request_URI "/one_of_my_jpgs.jpg" dontlog
SetEnvIf Request_URI "/one_of_my_gifs.gif" dontlog<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Sep 25, 2003 Posts: 3
|
(Msg. 3) Posted: Thu Sep 25, 2003 7:27 pm
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks Brian
I have various sites and files can I use a wildcard? like in
SetEnvIf Request_URI "/*.jpg" dontlog
Thanks
Mike
"Brian H¹©" <no.spam RemoveThis @this.addy.ta> wrote in message
news:vPDcb.4073$%G1.684@newsfep4-winn.server.ntli.net...
> M.I. said:
>
> > Hi,
> >
> > I'm new at apache and I couldn't figure out by the doc the config so
that
> > the requests for image files *.gif, *.jpg, etc are not logged.
> > Right now when a page is requested it gives me one line for each image
which
> > makes the log file huge and hard to read.
> > Also, what is the best and easiest program to manage log files.
> > TIA
> >
> > Mike
> >
> >
>
> Add env=!dontlog to the end of your logfile as in the ex below
>
> CustomLog logs/combined.log combined env=!dontlog
>
> and add lines like this to not log
>
> SetEnvIf Request_URI "/one_of_my_jpgs.jpg" dontlog
>
> SetEnvIf Request_URI "/one_of_my_gifs.gif" dontlog
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Oct 04, 2003 Posts: 21
|
(Msg. 4) Posted: Thu Sep 25, 2003 10:16 pm
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
M.I. said:
> Thanks Brian
> I have various sites and files can I use a wildcard? like in
> SetEnvIf Request_URI "/*.jpg" dontlog
> Thanks
> Mike
Yes, but that will not log any jpgs whatsoever, anywhere on the site.
>
> "Brian H¹©" <no.spam DeleteThis @this.addy.ta> wrote in message
> news:vPDcb.4073$%G1.684@newsfep4-winn.server.ntli.net...
>> M.I. said:
>>
>>> Hi,
>>>
>>> I'm new at apache and I couldn't figure out by the doc the config so that
>>> the requests for image files *.gif, *.jpg, etc are not logged.
>>> Right now when a page is requested it gives me one line for each image which
>>> makes the log file huge and hard to read.
>>> Also, what is the best and easiest program to manage log files.
>>> TIA
>>>
>>> Mike
>>>
>>>
>>
>> Add env=!dontlog to the end of your logfile as in the ex below
>>
>> CustomLog logs/combined.log combined env=!dontlog
>>
>> and add lines like this to not log
>>
>> SetEnvIf Request_URI "/one_of_my_jpgs.jpg" dontlog
>>
>> SetEnvIf Request_URI "/one_of_my_gifs.gif" dontlog
>>
>>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Sep 25, 2003 Posts: 3
|
(Msg. 5) Posted: Thu Sep 25, 2003 10:16 pm
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks, That's what I need.
Mike
"Brian H¹©" <no.spam RemoveThis @this.addy.ta> wrote in message
news:FhGcb.4198$%G1.370@newsfep4-winn.server.ntli.net...
> M.I. said:
>
> > Thanks Brian
> > I have various sites and files can I use a wildcard? like in
> > SetEnvIf Request_URI "/*.jpg" dontlog
> > Thanks
> > Mike
>
> Yes, but that will not log any jpgs whatsoever, anywhere on the site.
>
> >
> > "Brian H¹©" <no.spam RemoveThis @this.addy.ta> wrote in message
> > news:vPDcb.4073$%G1.684@newsfep4-winn.server.ntli.net...
> >> M.I. said:
> >>
> >>> Hi,
> >>>
> >>> I'm new at apache and I couldn't figure out by the doc the config so
that
> >>> the requests for image files *.gif, *.jpg, etc are not logged.
> >>> Right now when a page is requested it gives me one line for each image
which
> >>> makes the log file huge and hard to read.
> >>> Also, what is the best and easiest program to manage log files.
> >>> TIA
> >>>
> >>> Mike
> >>>
> >>>
> >>
> >> Add env=!dontlog to the end of your logfile as in the ex below
> >>
> >> CustomLog logs/combined.log combined env=!dontlog
> >>
> >> and add lines like this to not log
> >>
> >> SetEnvIf Request_URI "/one_of_my_jpgs.jpg" dontlog
> >>
> >> SetEnvIf Request_URI "/one_of_my_gifs.gif" dontlog
> >>
> >>
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Oct 04, 2003 Posts: 21
|
(Msg. 6) Posted: Fri Sep 26, 2003 1:50 am
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
M.I. said:
> Thanks, That's what I need.
> Mike
You're welcome.
>
> "Brian H¹©" <no.spam RemoveThis @this.addy.ta> wrote in message
> news:FhGcb.4198$%G1.370@newsfep4-winn.server.ntli.net...
>> M.I. said:
>>
>>> Thanks Brian
>>> I have various sites and files can I use a wildcard? like in
>>> SetEnvIf Request_URI "/*.jpg" dontlog
>>> Thanks
>>> Mike
>>
>> Yes, but that will not log any jpgs whatsoever, anywhere on the site.
>>
>>>
>>> "Brian H¹©" <no.spam RemoveThis @this.addy.ta> wrote in message
>>> news:vPDcb.4073$%G1.684@newsfep4-winn.server.ntli.net...
>>>> M.I. said:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm new at apache and I couldn't figure out by the doc the config so that
>>>>> the requests for image files *.gif, *.jpg, etc are not logged.
>>>>> Right now when a page is requested it gives me one line for each image
>>>>> which makes the log file huge and hard to read.
>>>>> Also, what is the best and easiest program to manage log files.
>>>>> TIA
>>>>>
>>>>> Mike
>>>>>
>>>>>
>>>>
>>>> Add env=!dontlog to the end of your logfile as in the ex below
>>>>
>>>> CustomLog logs/combined.log combined env=!dontlog
>>>>
>>>> and add lines like this to not log
>>>>
>>>> SetEnvIf Request_URI "/one_of_my_jpgs.jpg" dontlog
>>>>
>>>> SetEnvIf Request_URI "/one_of_my_gifs.gif" dontlog
>>>>
>>>>
>>>
>>><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
External

Since: Aug 21, 2003 Posts: 23
|
(Msg. 7) Posted: Fri Sep 26, 2003 1:43 pm
Post subject: Re: Log file question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"M.I." <mike DeleteThis @home.com> escribió en el mensaje
news:soDcb.7781$yD1.1263265@news20.bellglobal.com...
> I'm new at apache and I couldn't figure out by the doc the config so that
> the requests for image files *.gif, *.jpg, etc are not logged.
It's often a good idea to log everything and then just ignore undesired
files when using a log analyzer. That lets you be aware of many abuses and
also let's you obtain certain statistics such as bandwithd usage.
> Also, what is the best and easiest program to manage log files.
I'm using awstats (a perl script) and I'm quite happy with it. Urchin is
also a well-known log analyzer.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Log file question |
|
| Back to top |
|
 |  |
| Related Topics: | log question - I have set up a log "environment" which sends different "stuff" into different logfiles: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h ...
error with tomcat tar.gz file - I found the problem of the not running tomcat.... the installation unpacking of the tomcat tar.gz file hade some error's I donwloaded the latest version direct from the apache site and still if i try to unpack the file I get a tar: directory cheksum..
Disable File Upload - Hello, I have a Web server and would like to disable HTTP file upload altogether so as to restrict CGI programs written in any languages. What is the best way to do so? Thanks. -- Regards, Bernard Chan
.htaccess file makes 403 - hi folks, i wrote a .htaccess file with the following content: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteBase / RewriteRule ^typo3$ typo3/index_re.php RewriteRule ^[^/]*\.html$ index.php but when accessing this page, a 403..
Log based on requests to a certain file - Is there a directive in a .htaccess file I can use to process all requests to a certain file (robots.txt) to be sent via a perl/php script to log it's requests separately. Cheers -- Pneu..... http://www.pneumatus.co.uk Release Your Mind |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|