access log: add connection-level logging (#10383)

Signed-off-by: Kuat Yessenov <kuat@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 30bd2dd32632f9e9de2e981b3355a1b2da59c302
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 176df17e6c
commit b1336cc282
  1. 1
      envoy/api/v2/BUILD
  2. 7
      envoy/api/v2/listener.proto
  3. 1
      envoy/config/listener/v3/BUILD
  4. 7
      envoy/config/listener/v3/listener.proto

@ -14,6 +14,7 @@ api_proto_package(
"//envoy/api/v2/endpoint:pkg",
"//envoy/api/v2/listener:pkg",
"//envoy/api/v2/route:pkg",
"//envoy/config/filter/accesslog/v2:pkg",
"//envoy/config/listener/v2:pkg",
"//envoy/type:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",

@ -7,6 +7,7 @@ import "envoy/api/v2/core/base.proto";
import "envoy/api/v2/core/socket_option.proto";
import "envoy/api/v2/listener/listener_components.proto";
import "envoy/api/v2/listener/udp_listener_config.proto";
import "envoy/config/filter/accesslog/v2/accesslog.proto";
import "envoy/config/listener/v2/api_listener.proto";
import "google/api/annotations.proto";
@ -24,7 +25,7 @@ option (udpa.annotations.file_migrate).move_to_package = "envoy.config.listener.
// [#protodoc-title: Listener configuration]
// Listener :ref:`configuration overview <config_listeners>`
// [#next-free-field: 22]
// [#next-free-field: 23]
message Listener {
enum DrainType {
// Drain in response to calling /healthcheck/fail admin endpoint (along with the health check
@ -237,4 +238,8 @@ message Listener {
// This issue was fixed by `tcp: Avoid TCP syncookie rejected by SO_REUSEPORT socket
// <https://github.com/torvalds/linux/commit/40a1227ea845a37ab197dd1caffb60b047fa36b1>`_.
bool reuse_port = 21;
// Configuration for :ref:`access logs <arch_overview_access_logs>`
// emitted by this listener.
repeated config.filter.accesslog.v2.AccessLog access_log = 22;
}

@ -8,6 +8,7 @@ api_proto_package(
deps = [
"//envoy/api/v2:pkg",
"//envoy/api/v2/listener:pkg",
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/listener/v2:pkg",
"//envoy/type/v3:pkg",

@ -2,6 +2,7 @@ syntax = "proto3";
package envoy.config.listener.v3;
import "envoy/config/accesslog/v3/accesslog.proto";
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/socket_option.proto";
@ -24,7 +25,7 @@ option java_multiple_files = true;
// [#protodoc-title: Listener configuration]
// Listener :ref:`configuration overview <config_listeners>`
// [#next-free-field: 22]
// [#next-free-field: 23]
message Listener {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.Listener";
@ -232,4 +233,8 @@ message Listener {
// This issue was fixed by `tcp: Avoid TCP syncookie rejected by SO_REUSEPORT socket
// <https://github.com/torvalds/linux/commit/40a1227ea845a37ab197dd1caffb60b047fa36b1>`_.
bool reuse_port = 21;
// Configuration for :ref:`access logs <arch_overview_access_logs>`
// emitted by this listener.
repeated accesslog.v3.AccessLog access_log = 22;
}

Loading…
Cancel
Save