--- WARNING: THIS IS AN AUTO-GENERATED FILE, DO NOT EDIT. PLEASE MODIFY THE ORIGINAL SOURCE IN THE 'https://github.com/istio/proxy' REPO source_repo: https://github.com/istio/proxy title: AccessLogPolicy Config description: Configuration for AccessLogPolicy Filter. location: https://istio.io/docs/reference/config/proxy_extensions/accesslogpolicy.html layout: protoc-gen-docs generator: protoc-gen-docs weight: 20 number_of_entries: 1 ---

Accesslog Policy plugin is a stateful http log sampler. It decides whether a request is logged based on the following rules.

  1. All requests resulting in errors are logged.
  2. First successful request within log_window_duration from a specific source ip (source principal) is logged. The plugin records its decision in the istio.access_log_policy attribute with a value of “no”. A downstream plugin may honor the the attribute. For example, Stackdriver plugin will not produce an access log entry if this attribute is set.

AccessLogPolicyConfig

Top level Config for Access Log Policy Config Filter.

Field Type Description Required
log_window_duration Duration

Optional. Allows specifying logging window for successful requests. The default duration is 12h.

No
max_client_cache_size int32

Optional. Allows specifying max client cache size. The default is 500 entries.

No