AccessLogPolicy
Proto: access_log_policy.proto
Package: observability.policy.gloo.solo.io
Types:
- AccessLogPolicySpec
- AccessLogPolicySpec.Config
- AccessLogPolicySpec.Config.Filter
- AccessLogPolicyStatus
- AccessLogPolicyStatus.WorkspacesEntry
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 | Description |
---|---|
applyToWorkloads |
(repeated common.gloo.solo.io.WorkloadSelector )Select the workloads where access logs will be collected. If left empty, will apply to all workloads in the workspace. |
config |
(AccessLogPolicySpec.Config )The details of the policy specifying how to collect access logs from the selected workloads. |
AccessLogPolicySpec.Config
Field | Description |
---|---|
filters |
(repeated AccessLogPolicySpec.Config.Filter )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 |
(repeated string )Specify request headers to include in access logs. |
includedResponseHeaders |
(repeated string )Specify response headers to include in access logs. |
includedResponseTrailers |
(repeated string )Specify response trailers to include in access logs. |
includedFilterStateObjects |
(repeated string )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 | 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 | Description |
---|---|
global |
(common.gloo.solo.io.GenericGlobalStatus ) |
workspaces |
(repeated AccessLogPolicyStatus.WorkspacesEntry )The status of the resource in each workspace that it exists in. |
selectedWorkloads |
(repeated common.gloo.solo.io.ObjectReference )DEPRECATED: Use selected_workload_refs instead |
selectedWorkloadRefs |
(repeated common.gloo.solo.io.WorkloadReference )Workloads selected by the policy |
AccessLogPolicyStatus.WorkspacesEntry
Field | Description |
---|---|
key |
(string ) |
value |
(common.gloo.solo.io.WorkspaceStatus ) |