tcp_proxy: add on-upstream-connected access log flush (#26094)

Commit Message: Add on-upstream-connected access log flush for TCP Proxy.
Additional Description: None
Risk Level: Low
Testing: Unit test, integration tests
Docs Changes: Access logs
Release Notes: None
Platform Specific Features: None

Resolves https://github.com/envoyproxy/envoy/issues/26058

Mirrored from https://github.com/envoyproxy/envoy @ fa5f548d05da6495c175b5c124292fa0bae215de
pull/626/head
data-plane-api(Azure Pipelines) 2 years ago
parent 39cfdcdc6f
commit 12163cd499
  1. 6
      envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto

@ -24,7 +24,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// TCP Proxy :ref:`configuration overview <config_network_filters_tcp_proxy>`.
// [#extension: envoy.filters.network.tcp_proxy]
// [#next-free-field: 16]
// [#next-free-field: 17]
message TcpProxy {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.filter.network.tcp_proxy.v2.TcpProxy";
@ -218,4 +218,8 @@ message TcpProxy {
// The interval must be at least 1ms.
google.protobuf.Duration access_log_flush_interval = 15
[(validate.rules).duration = {gte {nanos: 1000000}}];
// If set to true, access log will be flushed when the TCP proxy has successfully established a
// connection with the upstream. If the connection failed, the access log will not be flushed.
bool flush_access_log_on_connected = 16;
}

Loading…
Cancel
Save