Accesslog Policy plugin is a stateful http log sampler. It decides whether a request is logged based on the following rules.
- All requests resulting in errors are logged.
- 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.
Top level Config for Access Log Policy Config Filter.