access_log_policy.proto

Package : observability.policy.gloo.solo.io

Top

access_log_policy.proto

Table of Contents

AccessLogPolicySpec

AccessLogPolicy is used to collect access logs from workloads which have injected (sidecars) or are standalone proxies (gateways). AccessLogPolicies are applied at the Workload level.

Field Type Label Description
applyToWorkloads []common.gloo.solo.io.WorkloadSelector repeated Select the workloads where access logs will be collected. If left empty, will apply to all workloads in the workspace.
config observability.policy.gloo.solo.io.AccessLogPolicySpec.Config The details of the policy specifying how to collect access logs from the selected workloads.

AccessLogPolicySpec.Config

Field Type Label Description
filters []observability.policy.gloo.solo.io.AccessLogPolicySpec.Config.Filter repeated Configure criteria for determining which access logs will be recorded. The list is disjunctive, a request will be recorded if it matches any filter. Leave empty to emit all access logs.
includedRequestHeaders []string repeated Specify request headers to include in access logs.
includedResponseHeaders []string repeated Specify response headers to include in access logs.
includedResponseTrailers []string repeated Specify response trailers to include in access logs.
includedFilterStateObjects []string repeated Specify filter state objects to include in access logs.

AccessLogPolicySpec.Config.Filter

Specify criteria for recording access logs. A request must match all specified criteria to be recorded.

Field Type Label Description
statusCodeMatcher common.gloo.solo.io.StatusCodeMatcher Matches against a response status code. Omit to match any status code.
headerMatcher common.gloo.solo.io.HeaderMatcher Matches against a request or response header. Omit to match any headers.

AccessLogPolicyStatus

Reflects the status of the AccessLogPolicy.

Field Type Label Description
global common.gloo.solo.io.GenericGlobalStatus
workspaces []observability.policy.gloo.solo.io.AccessLogPolicyStatus.WorkspacesEntry repeated The status of the resource in each workspace that it exists in.
selectedWorkloads []common.gloo.solo.io.ObjectReference repeated Workloads selected by the policy

AccessLogPolicyStatus.WorkspacesEntry

Field Type Label Description
key string
value common.gloo.solo.io.WorkspaceStatus