udp_proxy: support file access logging (#20103)

Signed-off-by: giantcroc <changran.wang@intel.com>

Mirrored from https://github.com/envoyproxy/envoy @ 4dc78ded31fb64f5790553bd67e4f3bc9d13998e
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 49372ae3ba
commit 46c8913734
  1. 1
      envoy/extensions/filters/udp/udp_proxy/v3/BUILD
  2. 6
      envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto

@ -6,6 +6,7 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/accesslog/v3:pkg",
"//envoy/config/core/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],

@ -2,6 +2,7 @@ syntax = "proto3";
package envoy.extensions.filters.udp.udp_proxy.v3;
import "envoy/config/accesslog/v3/accesslog.proto";
import "envoy/config/core/v3/udp_socket_config.proto";
import "google/protobuf/duration.proto";
@ -21,7 +22,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#extension: envoy.filters.udp_listener.udp_proxy]
// Configuration for the UDP proxy filter.
// [#next-free-field: 8]
// [#next-free-field: 9]
message UdpProxyConfig {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.filter.udp.udp_proxy.v2alpha.UdpProxyConfig";
@ -88,4 +89,7 @@ message UdpProxyConfig {
// The default if not specified is false, that means each data chunk is forwarded
// to upstream host selected on first chunk receival for that "session" (identified by source IP/port and local IP/port).
bool use_per_packet_load_balancing = 7;
// Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
repeated config.accesslog.v3.AccessLog access_log = 8;
}

Loading…
Cancel
Save