Can I disable access logs only to outbound requests? I would like confugure the logs in
meshConfig.accessLogFile, meshConfig.accessLogEncoding and meshConfig.accessLogFormat and then create an EnvoyFilter just to disable to SIDECAR_OUTBOUND
If I create an EnvoyFilter like this:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: remove-outbound-access-log
namespace: platform-istio
spec:
configPatches:
- applyTo: NETWORK_FILTER
match:
context: SIDECAR_OUTBOUND
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
patch:
operation: MERGE
value:
typed_config:
'@type': >-
type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
access_log:
- name: envoy.access_loggers.file
typed_config:
'@type': >-
type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: /dev/null
It just create a new access_log entry and doesn’t remove the one Istio creates.