Configuring the access log format

Information about all web resource requests that are processed by the Squid service is saved in the file named access.log. This file is known as the access log. You can change the format in which entries about requests will be saved in the access log.

To configure the access log format:

  1. In the application web interface, select the SettingsBuilt-in proxy serverLogs section.
  2. Set the toggle switch to Enabled.
  3. Select one of the following access log formats:
    • Default.

      This is the access log format used by the Squid service by default. When this option is selected, the following strings are added to the configuration file squid.conf:

      logformat kl_format %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt

      access_log syslog:local2.info kl_format

      The access log records the time and status of the request, connection source address, and information about HTTP headers of the web resource.

    • Custom.

      You can change the content and format of data saved by the Squid service in the access log. This may be required, for example, so that the log can be processed by third-party applications requiring a specific format.

      When this option is selected, the following strings are added to the configuration file squid.conf:

      logformat custom_format <value in the Format specification field>

      access_log syslog:local2.info custom_format

  4. If you selected the Custom option, type the format code in the Format specification field.

    You can use the predefined formats Squid, Common, Combined, Referrer and Useragent by using the links under the entry field.

    For more detailed information about access log formats, please refer to the website www.squid-cache.org.

  5. Click Save.

    The proxy server will be restarted. Traffic processing will be paused before the restart completes.

The access log format is now configured. Information about web resource requests processed by the Squid service will be saved in the defined format in the access.log file.

Page top