gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Configurable Envoy Access Logging

Open danehans opened this issue 3 years ago • 4 comments

Currently, Envoy access logs are sent to /dev/null. Users should have the ability to configure Envoy access logging through the EnvoyProxy API type.

danehans avatar Aug 30 '22 00:08 danehans

In the meantime, do the following to enable access logging:

--- a/internal/infrastructure/kubernetes/bootstrap.yaml.tpl
+++ b/internal/infrastructure/kubernetes/bootstrap.yaml.tpl
@@ -1,5 +1,8 @@
 admin:
-  access_log_path: /dev/null
+  access_log:
+  - name: envoy.access_loggers.stdout
+    typed_config:
+      "@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
   address:
     socket_address:
       address: {{ .AdminServerAddress }}

danehans avatar Aug 30 '22 00:08 danehans

@danehans imho EG should propose a sane default such as ^ and any mod should be addressed via https://github.com/envoyproxy/gateway/issues/31 / https://github.com/envoyproxy/gateway/issues/24

arkodg avatar Aug 30 '22 00:08 arkodg

for a short term, make bootstrap configurable seems enough.

for a long term, we may need something like Telemetry api in istio?

zirain avatar Aug 30 '22 00:08 zirain

@danehans that is only for the admin endpoint, the other logs is configured via xDS component.

lizan avatar Aug 30 '22 01:08 lizan

fixed by https://github.com/envoyproxy/gateway/pull/1407 and https://github.com/envoyproxy/gateway/pull/1464

zirain avatar Jun 08 '23 12:06 zirain