Ingress gateway and envoy access logs

How can we enable Envoy access logs for ingress service? I tried with envoy_public_listener_json in proxy-defaults but that did not work since envoy bootstrap or config_dump doesn’t show the configuration once we start ingress.

envoy_public_listener_json = << EOL
{
“name”: “public_listener”,
“address”: {
“socket_address”: {
“address”: “0.0.0.0”,
“port_value”: 21000
}
},
“filter_chains”: [
{
“filters”: [
{
“name”: “envoy.filters.network.http_connection_manager”,
“config”: {
“tracing”: {},
“add_user_agent”: true,
“codec_type”: “AUTO”,
“generate_request_id”: true,
“use_remote_address”: true,
“access_log”: [
{
“name”: “envoy.access_loggers.file”,
“typed_config”: {
@type”: “type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog”,
“path”: “/var/log/envoy/envoy_access.log”
}
}
],
“route_config”: {
“name”: “public_listener”,
“virtual_hosts”: [
{
“routes”: [
{
“match”: {
“prefix”: “/”
},
“route”: {
“cluster”: “jaeger”
}
}
],
“domains”: [
“*”
],
“response_headers_to_add”: [
{
“header”: {
“key”: “x-b3-traceid”,
“value”: “%REQ(x-b3-traceid)%”
},
“header”: {
“key”: “x-request-id”,
“value”: “%REQ(x-request-id)%”
}
}
],
“name”: “public_listener”
}
]
},
“http_filters”: [
{
“name”: “envoy.filters.http.router”
}
],
“stat_prefix”: “public_listener_http”
}
}
]
}
]
}
EOL

Hi @pvyaka01,

The escape hatches are currently not supported for ingress gateways. The following GitHub issue was created to track this feature request. Please :+1: the issue to show your interest in this feature.