Time for action – learning log format and format codes
Log format can be defined using the logformat
directive available in the Squid configuration file. The syntax for defining logformat
is as follows:
logformat <name> <format specification>
Format specification
is a series of format code, as described in the following information:
Format code |
Format description |
---|---|
|
A literal % character. |
|
Unique sequence number per log line entry. |
|
The ID of an error response served by Squid or a similar internal error identifier. |
|
Additional |
|
Client's source IP address. |
|
Client's FQDN (Fully Qualified Domain Name). |
|
Client's source port. |
|
Server's IP address or peer name. |
|
Local IP address of the Squid proxy server. |
|
Local port number on which Squid is listening. |
|
Local port number of the last server or peer connection. |
|
Seconds since Unix epoch. |
|
Sub... |