This content has moved to our new docs site:
https://docs.datadoghq.com/agent/proxy/#using-nginx-as-a-proxy
Proxy for logs collection with NGINX
Have more questions? Submit a request
-
Simon Guerrier There is also another workaround I saw in a trello ticket:
You can use a workaround using another agent installed on your proxy server.
In the Internet-facing agent (the one on the proxy server), you would need the following in the config file your_service.d/conf.yaml
logs:
- type: tcp
port: 10516
service: service_name
source: source_name
log_processing_rules:
- type: mask_sequences
name: mask_apikey
replace_placeholder: "[apikey]"
## redact the API key
pattern: (?:^\w+)In the internal agent, you would need the following in the config file
/etc/datadog-agent/datadog.yaml
to forward logs to the proxy server agent:logs_config:
dd_url: myProxyServer.myDomain
dd_port: 10516
dev_mode_no_ssl: true
Article is closed for comments.
1 Comments