Prev: Next: Up: Service[Contents][Index]


9.11.3 Service Logging

Service directive: ForwardedHeader "name"

Defines the name of the HTTP header that carries the list of proxies the request has passed through. Default value is X-Forwarded-For. This header is used to determine the originator IP address for logging. See %a, for details.

Service directive: TrustedIP

Defines a list of trusted proxy IP addresses, which is used to determine the originator IP.

See %a, for a detailed discussion.

This statement is a special form of ACL statement, described in ACL. It can appear in three forms: anonymous ACL, file reference, or ACL reference. Examples:

  1. TrustedIP
      "127.0.0.1/8"
      "10.16.0.0/16"
    End
    
  2. TrustedIP -filewatch "/etc/pound/trustip.acl"
    
  3. TrustedIP "proxy_addresses"
    
Service directive: LogSuppress class [class...]

Suppresses HTTP logging for requests that resulted in status codes from the specified classes. Valid classes are:

info
1

1xx’ response codes.

success
2

2xx’ response codes.

redirect
3

3xx’ response codes.

clterr
4

4xx’ response codes.

srverr
5

5xx’ response codes.

all

All response codes.

This statement is designed for services that receive a constant stream of similar HTTP requests from a controlled set of IP addresses, such as e.g. Openmetric services. See Metrics, for an example.


Prev: Next: Up: Service[Contents][Index]