You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.8 KiB
83 lines
3.8 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.extensions.access_loggers.grpc.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/config/core/v3/grpc_service.proto";
|
||
5 years ago
|
|
||
|
import "google/protobuf/duration.proto";
|
||
|
import "google/protobuf/wrappers.proto";
|
||
|
|
||
5 years ago
|
import "udpa/annotations/versioning.proto";
|
||
5 years ago
|
|
||
5 years ago
|
import "validate/validate.proto";
|
||
|
|
||
5 years ago
|
option java_package = "io.envoyproxy.envoy.extensions.access_loggers.grpc.v3";
|
||
5 years ago
|
option java_outer_classname = "AlsProto";
|
||
|
option java_multiple_files = true;
|
||
|
|
||
5 years ago
|
// [#protodoc-title: gRPC Access Log Service (ALS)]
|
||
|
|
||
|
// Configuration for the built-in *envoy.http_grpc_access_log*
|
||
5 years ago
|
// :ref:`AccessLog <envoy_api_msg_config.accesslog.v3.AccessLog>`. This configuration will
|
||
5 years ago
|
// populate :ref:`StreamAccessLogsMessage.http_logs
|
||
5 years ago
|
// <envoy_api_field_service.accesslog.v3.StreamAccessLogsMessage.http_logs>`.
|
||
5 years ago
|
// [#extension: envoy.access_loggers.http_grpc]
|
||
5 years ago
|
message HttpGrpcAccessLogConfig {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.config.accesslog.v2.HttpGrpcAccessLogConfig";
|
||
|
|
||
5 years ago
|
CommonGrpcAccessLogConfig common_config = 1 [(validate.rules).message = {required: true}];
|
||
5 years ago
|
|
||
|
// Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
|
||
5 years ago
|
// <envoy_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
|
||
5 years ago
|
repeated string additional_request_headers_to_log = 2;
|
||
|
|
||
|
// Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
|
||
5 years ago
|
// <envoy_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
|
||
5 years ago
|
repeated string additional_response_headers_to_log = 3;
|
||
|
|
||
|
// Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
|
||
5 years ago
|
// <envoy_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
|
||
5 years ago
|
repeated string additional_response_trailers_to_log = 4;
|
||
|
}
|
||
|
|
||
|
// Configuration for the built-in *envoy.tcp_grpc_access_log* type. This configuration will
|
||
|
// populate *StreamAccessLogsMessage.tcp_logs*.
|
||
5 years ago
|
// [#extension: envoy.access_loggers.tcp_grpc]
|
||
5 years ago
|
message TcpGrpcAccessLogConfig {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.config.accesslog.v2.TcpGrpcAccessLogConfig";
|
||
|
|
||
5 years ago
|
CommonGrpcAccessLogConfig common_config = 1 [(validate.rules).message = {required: true}];
|
||
5 years ago
|
}
|
||
|
|
||
|
// Common configuration for gRPC access logs.
|
||
5 years ago
|
// [#next-free-field: 6]
|
||
5 years ago
|
message CommonGrpcAccessLogConfig {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.config.accesslog.v2.CommonGrpcAccessLogConfig";
|
||
|
|
||
5 years ago
|
// The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
|
||
5 years ago
|
// <envoy_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
|
||
5 years ago
|
// access log server to differentiate between different access logs coming from the same Envoy.
|
||
5 years ago
|
string log_name = 1 [(validate.rules).string = {min_bytes: 1}];
|
||
5 years ago
|
|
||
|
// The gRPC service for the access log service.
|
||
5 years ago
|
config.core.v3.GrpcService grpc_service = 2 [(validate.rules).message = {required: true}];
|
||
5 years ago
|
|
||
|
// Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
|
||
|
// this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
|
||
|
// 1 second.
|
||
5 years ago
|
google.protobuf.Duration buffer_flush_interval = 3 [(validate.rules).duration = {gt {}}];
|
||
5 years ago
|
|
||
|
// Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
|
||
|
// this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
|
||
|
// to zero effectively disables the batching. Defaults to 16384.
|
||
|
google.protobuf.UInt32Value buffer_size_bytes = 4;
|
||
5 years ago
|
|
||
|
// Additional filter state objects to log in :ref:`filter_state_objects
|
||
5 years ago
|
// <envoy_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
|
||
5 years ago
|
// Logger will call `FilterState::Object::serializeAsProto` to serialize the filter state object.
|
||
|
repeated string filter_state_objects_to_log = 5;
|
||
5 years ago
|
}
|