What's Actually Happening
Envoy filters are not being applied to traffic. Custom filters don't affect requests as expected.
The Error You'll See
- Filter configuration not taking effect
- Requests not being modified
- Filter not appearing in config dump
Why This Happens
- 1.Filter not properly configured
- 2.Wrong listener binding
- 3.Filter order issues
- 4.Configuration syntax error
- 5.Filter disabled
Step 1: Check Envoy Config Dump
curl http://localhost:9901/config_dump
curl http://localhost:9901/config_dump?include_edsStep 2: Check Filter Configuration
# In config_dump, look for:
# "http_filters" or "filters"
curl -s http://localhost:9901/config_dump | jq '.configs[0].dynamic_listeners[0].filter_chains[0].filters'Step 3: Check Listener
curl -s http://localhost:9901/config_dump | jq '.configs[].dynamic_listeners[]?.name'
curl -s http://localhost:9901/config_dump/listenersStep 4: Verify Filter Order
# Filters are applied in order
http_filters:
- name: my-filter
- name: envoy.filters.http.routerStep 5: Check Filter Stats
curl http://localhost:9901/stats | grep my_filterStep 5: Check Logs
# Envoy logs
docker logs envoy
# Or sidecar logs
kubectl logs deployment/myapp -c istio-proxyStep 7: Validate Configuration
envoy --mode validate -c /etc/envoy/envoy.yamlStep 8: Check Admin Interface
curl http://localhost:9901/server_info
curl http://localhost:9901/listeners
curl http://localhost:9901/clustersStep 9: Reload Configuration
curl -X POST http://localhost:9901/restart
# Or hot reload:
curl -X POST http://localhost:9901/restart?restart_type=hot_restartStep 10: Debug Filter
# Enable debug logging
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 9901Related Issues
- [Fix Envoy Proxy Upstream Connection Refused](/articles/fix-envoy-proxy-upstream-connection-refused)
- [Fix Istio Traffic Not Routing](/articles/fix-istio-traffic-not-routing)