Status code filter. Only one of statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Duration filter. Only one of durationFilter, statusCodeFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Not health check filter. Only one of notHealthCheckFilter, statusCodeFilter, durationFilter, traceableFilter, runtimeFilter, andFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Traceable filter. Only one of traceableFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, runtimeFilter, andFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Runtime filter. Only one of runtimeFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, andFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
And filter. Only one of andFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, orFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Or filter. Only one of orFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, headerFilter, responseFlagFilter, or grpcStatusFilter can be set.
Header filter. Only one of headerFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, orFilter, responseFlagFilter, or grpcStatusFilter can be set.
Response flag filter. Only one of responseFlagFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, orFilter, headerFilter, or grpcStatusFilter can be set.
gRPC status filter. Only one of grpcStatusFilter, statusCodeFilter, durationFilter, notHealthCheckFilter, traceableFilter, runtimeFilter, andFilter, orFilter, headerFilter, or responseFlagFilter can be set.
Runtime key to get an optional overridden numerator for use in the percent_sampled field. If found in runtime, this value will replace the default numerator.
The default sampling percentage. If not specified, defaults to 0% with denominator of 100.
useIndependentRandomness
bool
By default, sampling pivots on the header :ref:x-request-id<config_http_conn_man_headers_x-request-id> being present. If :ref:x-request-id<config_http_conn_man_headers_x-request-id> is present, the filter will consistently sample across multiple hosts based on the runtime key value and the value extracted from :ref:x-request-id<config_http_conn_man_headers_x-request-id>. If it is missing, or use_independent_randomness is set to true, the filter will randomly sample based on the runtime key value alone. use_independent_randomness can be used for logging kill switches within complex nested :ref:AndFilter <envoy_v3_api_msg_config.accesslog.v3.AndFilter> and :ref:OrFilter <envoy_v3_api_msg_config.accesslog.v3.OrFilter> blocks that are easier to reason about from a probability perspective (i.e., setting to true will cause the filter to behave like an independent random variable when composed within logical operator filters).
AndFilter
Performs a logical “and” operation on the result of each filter in filters.
Filters are evaluated sequentially and if one of them returns false, the
filter returns false immediately.
Performs a logical “or” operation on the result of each individual filter.
Filters are evaluated sequentially and if one of them returns true, the
filter returns true immediately.
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
ResponseFlagFilter
Filters requests that received responses with an Envoy response flag set.
A list of the response flags can be found
in the access log formatter
:ref:documentation<config_access_log_format_response_flags>.
"flags": []string
Field
Type
Description
flags
[]string
Only responses with the any of the flags listed in this field will be logged. This field is optional. If it is not specified, then any response flag will pass the filter check.
GrpcStatusFilter
Filters gRPC requests based on their response status. If a gRPC status is not
provided, the filter will infer the status from the HTTP status code.
Logs only responses that have any one of the gRPC statuses in this field.
exclude
bool
If included and set to true, the filter will instead block all responses with a gRPC status or inferred gRPC status enumerated in statuses, and allow all other responses.