Squid Web Cache Wiki

Squid Web Cache 文档

🔗 功能:适应性日志记录

🔗 详细信息

HTTP 事务有 access.log。ICAP 和 eCAP 事务需要自己的日志。此外,受适应性影响的 HTTP 事务可能需要在 access.log 中记录与适应性相关的详细信息。

ICAP 日志使用对 ICAP 事务有意义的logformat 代码。与标头相关的代码应用于嵌入 ICAP 服务器响应的 HTTP 标头,但有以下注意事项:对于 REQMOD,除非 ICAP 服务器执行了请求满足,否则没有 HTTP 响应标头。对于 RESPMOD,HTTP 请求标头是发送到 ICAP 服务器的标头。对于 OPTIONS,没有 HTTP 标头。

除了旧的logformat 代码外,以下格式代码也可用于 ICAP 日志

        <icap_A         ICAP server IP address. Similar to <A.

        <icap_service_name      ICAP service name from the icap_service
                        option in Squid configuration file.

        icap_ru         ICAP Request-URI. Similar to ru.

        icap_rm         ICAP request method (REQMOD, RESPMOD, or 
                        OPTIONS). Similar to existing rm.

        >icap_size      Bytes sent to the ICAP server (TCP payload
                        only; i.e., what Squid writes to the socket).

        <icap_size      Bytes received from the ICAP server (TCP
                        payload only; i.e., what Squid reads from
                        the socket).

        icap_tr         Transaction response time (in
                        milliseconds).  The timer starts when
                        the ICAP transaction is created and
                        stops when the transaction is completed.
                        Similar to tr.

        icap_tio        Transaction I/O time (in milliseconds). The
                        timer starts when the first ICAP request
                        byte is scheduled for sending. The timers
                        stops when the last byte of the ICAP response
                        is received.

        icap_to         Transaction outcome: ICAP_ERR* for all
                        transaction errors, ICAP_OPT for OPTION
                        transactions, ICAP_ECHO for 204
                        responses, ICAP_MOD for message
                        modification, and ICAP_SAT for request
                        satisfaction. Similar to Ss.

        icap_Hs         ICAP response status code. Similar to Hs.

        >icap_h         ICAP request header(s). Similar to >h.

        <icap_h         ICAP response header(s). Similar to <h.Adaptation log fields include:

如果启用了 ICAP,则以下两个代码可用于 access.log

        icap_total_time Total ICAP processing time for the HTTP
                        transaction. The timer ticks when ICAP
                        ACLs are checked and when ICAP
                        transaction is in progress.

        <icap_last_h    The header of the last ICAP response
                        related to the HTTP transaction. Like
                        <h, accepts an optional header name
                        argument.  Will not change semantics
                        when multiple ICAP transactions per HTTP
                        transaction are supported.

        adaptation_xact_times  A comma-separated list of individual
                        related adaptation transactions response times,
                        in milliseconds. The order is to be defined
                        during implementation.

请参阅squid.conf.documented 获取更多详细信息。

类别:功能

导航:站点搜索站点页面类别🔼 向上