TAG NAME access_log

Description Defines the file where client activities are logged
Build Option
Default
Usage
access_log <filepath> [<logformat name> [acl acl ...]]
access_log none [acl acl ...]
Default
access_log /usr/local/Squid3.0pre3/var/logs/access.log
Synopsis
All the activities the client does gets logged in this file. Using this, analysis on the access made by the clients can be done.

Customization of the logging can be done using the acl’s which logs only those clauses in the specified logformat. If no acl is specified, all requests will be logged to this file.

To disable logging of a request specify “none”.

Arguments

filepath
Location of the file that stores the logs
logformat name
Identifier that holds the customized log formats
acl
Filter rules to match


Example(s)
access_log /var/logs/access.log

If logformat is configured, then define the access_log as shown to get the defined logformats.

access_log /var/logs/access.log common, where common is the logformat name defined above.