Open agy opened 4 years ago
I've hit the same issue when switching to the EU datacenter. After configuring logs_dd_url
I had to manually set use_http
.
I encounter the same issue on my side, migrating from the US to EU Endpoint, I had to set use_http: true
on the configuration, and configure logs_dd_url
explicitly
Thanks @vascop :)
We were having similar issues in kubernetes and found that configuring for UDS solved it. Datadog has documentation on how to configure for UDS - pretty straightforward.
Describe what happened:
When enabling
additional_endpoints
in thelogs_config
section, the logs transport change from using HTTP to TCP. This is unexpected since I thought that I was only changing a subordinate endpoint but this also had an effect on the primary endpoint's configuration.When working around this issue but setting the transport manually to HTTPS, the additional endpoint does not use compression without also setting this value manually.
Describe what you expected:
When enabling an additional endpoint, I expect my "main" endpoint's transport to remain unchanged and for the additional endpoint's defaults to be consistent with the "main" endpoint's defaults.
If the main logs transport defaults to using HTTPS with compression, I expect additional logs endpoints to use these defaults as well.
Steps to reproduce the issue:
Note: After each edit of the config, the
datadog-agent
was restarted. This step and all thedatadog-agent
output has been omitted below for brevity.Setup
Create a new Ubuntu 18.04 instance and install the
datadog-agent
by copy and pasting the instructions from the https://app.datadoghq.com/account/settings#ubuntu page.Enable logs
This is my logs enabled configuration which works as expected. Logs are being sent compressed using the HTTPS transport.
Output from
datadog-agent status
Add an additional endpoint
Now the transport for both endpoints have been changed to TCP!?
Output from
datadog-agent status
Work around the transport issue, by setting it manually
Now both transports are now using HTTPS but the additional one isn't using compression!?
Output from
datadog-agent status
Work around the transport and compression issues, by setting it manually
This sets the transport for all endpoints to HTTPS and uses compression.
Output from
datadog-agent status
Additional environment details (Operating System, Cloud provider, etc):
Ubuntu 18.04 Datadog-agent: 7.20.2 and 7.21.1