Appache Logging

SlackRat slackrat4Q-MOdoAOVCFFcswetKESUqMA at public.gmane.org
Fri Aug 31 05:40:49 UTC 2007


I seem to have missed something somewhere and wonder if anyone can
advise.

I added the "%e" to my format specification and took the rest from the
Apache manual.

But my lan/loopback logons are still logged

This is what I have in the relevant section of the httpd.conf file:

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b %e" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#

# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "192\.168\.0\.1" dontlog
SetEnvIf Remote_Addr "192\.168\.0\.2" dontlog
# Mark requests for the robots.txt file
SetEnvIf Request_URI "^/robots\.txt$" dontlog


CustomLog /var/log/apache/access_log common


#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
CustomLog /var/log/apache/referer_log referer
#CustomLog /var/log/apache/agent_log agent

-- 
SlackRat - No fsck-U to Reply
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list