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.
87 lines
3.4 KiB
87 lines
3.4 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.service.accesslog.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/config/core/v3/base.proto";
|
||
|
import "envoy/data/accesslog/v3/accesslog.proto";
|
||
5 years ago
|
|
||
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.service.accesslog.v3";
|
||
5 years ago
|
option java_outer_classname = "AlsProto";
|
||
|
option java_multiple_files = true;
|
||
|
option java_generic_services = true;
|
||
|
|
||
5 years ago
|
// [#protodoc-title: gRPC Access Log Service (ALS)]
|
||
|
|
||
|
// Service for streaming access logs from Envoy to an access log server.
|
||
|
service AccessLogService {
|
||
|
// Envoy will connect and send StreamAccessLogsMessage messages forever. It does not expect any
|
||
|
// response to be sent as nothing would be done in the case of failure. The server should
|
||
|
// disconnect if it expects Envoy to reconnect. In the future we may decide to add a different
|
||
|
// API for "critical" access logs in which Envoy will buffer access logs for some period of time
|
||
|
// until it gets an ACK so it could then retry. This API is designed for high throughput with the
|
||
|
// expectation that it might be lossy.
|
||
|
rpc StreamAccessLogs(stream StreamAccessLogsMessage) returns (StreamAccessLogsResponse) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Empty response for the StreamAccessLogs API. Will never be sent. See below.
|
||
|
message StreamAccessLogsResponse {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.service.accesslog.v2.StreamAccessLogsResponse";
|
||
5 years ago
|
}
|
||
|
|
||
|
// Stream message for the StreamAccessLogs API. Envoy will open a stream to the server and stream
|
||
|
// access logs without ever expecting a response.
|
||
|
message StreamAccessLogsMessage {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.service.accesslog.v2.StreamAccessLogsMessage";
|
||
|
|
||
5 years ago
|
message Identifier {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier";
|
||
|
|
||
5 years ago
|
// The node sending the access log messages over the stream.
|
||
5 years ago
|
config.core.v3.Node node = 1 [(validate.rules).message = {required: true}];
|
||
5 years ago
|
|
||
|
// The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
|
||
5 years ago
|
// <envoy_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
|
||
5 years ago
|
string log_name = 2 [(validate.rules).string = {min_bytes: 1}];
|
||
5 years ago
|
}
|
||
|
|
||
|
// Wrapper for batches of HTTP access log entries.
|
||
|
message HTTPAccessLogEntries {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries";
|
||
|
|
||
5 years ago
|
repeated data.accesslog.v3.HTTPAccessLogEntry log_entry = 1
|
||
5 years ago
|
[(validate.rules).repeated = {min_items: 1}];
|
||
5 years ago
|
}
|
||
|
|
||
|
// Wrapper for batches of TCP access log entries.
|
||
|
message TCPAccessLogEntries {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries";
|
||
|
|
||
5 years ago
|
repeated data.accesslog.v3.TCPAccessLogEntry log_entry = 1
|
||
5 years ago
|
[(validate.rules).repeated = {min_items: 1}];
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
// Identifier data that will only be sent in the first message on the stream. This is effectively
|
||
|
// structured metadata and is a performance optimization.
|
||
|
Identifier identifier = 1;
|
||
|
|
||
5 years ago
|
// Batches of log entries of a single type. Generally speaking, a given stream should only
|
||
|
// ever include one type of log entry.
|
||
|
oneof log_entries {
|
||
|
option (validate.required) = true;
|
||
|
|
||
|
HTTPAccessLogEntries http_logs = 2;
|
||
|
|
||
|
TCPAccessLogEntries tcp_logs = 3;
|
||
|
}
|
||
|
}
|