diff --git a/pkg/xds/envoy/listeners/http_access_log_configurer_test.go b/pkg/xds/envoy/listeners/http_access_log_configurer_test.go index 2ea0a618cd95..a8287a02d140 100644 --- a/pkg/xds/envoy/listeners/http_access_log_configurer_test.go +++ b/pkg/xds/envoy/listeners/http_access_log_configurer_test.go @@ -132,6 +132,7 @@ var _ = Describe("HttpAccessLogConfigurer", func() { '@type': type.googleapis.com/envoy.config.accesslog.v2.FileAccessLog format: | [%START_TIME%] demo "%REQ(:method)% %REQ(x-envoy-original-path?:path)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(x-envoy-upstream-service-time)% "%REQ(x-forwarded-for)%" "%REQ(user-agent)%" "%REQ(x-request-id)%" "%REQ(:authority)%" "web" "backend" "192.168.0.1" "%UPSTREAM_HOST%" + path: /tmp/log httpFilters: - name: envoy.router @@ -190,6 +191,7 @@ var _ = Describe("HttpAccessLogConfigurer", func() { 127.0.0.1:1234;[%START_TIME%] "%REQ(x-request-id)%" "%REQ(:authority)%" "%REQ(origin)%" "%REQ(content-type)%" "web" "backend" "192.168.0.1:0" "192.168.0.1" "%UPSTREAM_HOST%" "%RESP(server):5%" "%TRAILER(grpc-message):7%" "DYNAMIC_METADATA(namespace:object:key):9" "FILTER_STATE(filter.state.key):12" + httpFilters: - name: envoy.router rds: diff --git a/pkg/xds/envoy/listeners/network_access_log_configurer_test.go b/pkg/xds/envoy/listeners/network_access_log_configurer_test.go index 49f568322754..8bfcae549616 100644 --- a/pkg/xds/envoy/listeners/network_access_log_configurer_test.go +++ b/pkg/xds/envoy/listeners/network_access_log_configurer_test.go @@ -128,6 +128,7 @@ var _ = Describe("NetworkAccessLogConfigurer", func() { '@type': type.googleapis.com/envoy.config.accesslog.v2.FileAccessLog format: | [%START_TIME%] %RESPONSE_FLAGS% demo 192.168.0.1(backend)->%UPSTREAM_HOST%(db) took %DURATION%ms, sent %BYTES_SENT% bytes, received: %BYTES_RECEIVED% bytes + path: /tmp/log cluster: db statPrefix: db @@ -181,6 +182,7 @@ var _ = Describe("NetworkAccessLogConfigurer", func() { 127.0.0.1:1234;[%START_TIME%] "%REQ(x-request-id)%" "%REQ(:authority)%" "%REQ(origin)%" "%REQ(content-type)%" "backend" "db" "192.168.0.1:0" "192.168.0.1" "%UPSTREAM_HOST% "%RESP(server):5%" "%TRAILER(grpc-message):7%" "DYNAMIC_METADATA(namespace:object:key):9" "FILTER_STATE(filter.state.key):12" + cluster: db statPrefix: db `,