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. |