config: added gRPC-based filter to access_log (#5682)

Signed-off-by: Cerek Hillen <cerekh@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ a5e6ed778a09bf8ddd4fd3b8d0bc84bab512f45c
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent 327edd7c51
commit 923134a751
  1. 34
      envoy/config/filter/accesslog/v2/accesslog.proto

@ -73,6 +73,9 @@ message AccessLogFilter {
// Response flag filter.
ResponseFlagFilter response_flag_filter = 9;
// gRPC status filter.
GrpcStatusFilter grpc_status_filter = 10;
}
}
@ -192,3 +195,34 @@ message ResponseFlagFilter {
]
}];
}
// 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.
message GrpcStatusFilter {
enum Status {
OK = 0;
CANCELED = 1;
UNKNOWN = 2;
INVALID_ARGUMENT = 3;
DEADLINE_EXCEEDED = 4;
NOT_FOUND = 5;
ALREADY_EXISTS = 6;
PERMISSION_DENIED = 7;
RESOURCE_EXHAUSTED = 8;
FAILED_PRECONDITION = 9;
ABORTED = 10;
OUT_OF_RANGE = 11;
UNIMPLEMENTED = 12;
INTERNAL = 13;
UNAVAILABLE = 14;
DATA_LOSS = 15;
UNAUTHENTICATED = 16;
}
// Logs only responses that have any one of the gRPC statuses in this field.
repeated Status statuses = 1 [(validate.rules).repeated .items.enum.defined_only = true];
// 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.
bool exclude = 2;
}

Loading…
Cancel
Save