DataDog / serilog-sinks-datadog-logs

Serilog Sink that sends log events to Datadog https://www.datadoghq.com/
Apache License 2.0
60 stars 42 forks source link

Logs lost after 1 min of inactivity using TCP client #30

Closed dvitonis closed 4 years ago

dvitonis commented 5 years ago

When there are no logs sent for > 1 min at least one following log is lost.

I followed the configuration instructions from the Datadog docs.

My configuration: .WriteTo.DatadogLogs( "<api_key>", configuration: new DatadogConfiguration(url: "intake.logs.datadoghq.com", port: 10516, useSSL: true, useTCP: true))

I am running this on OS X.

In Datadog I see the first 3 requests, but after a minute only 2 out of 3 reach datadog, see the screenshot.

image

ogaca-dd commented 4 years ago

Hello @dvitonis ,

This issue seems to be the same as https://github.com/DataDog/serilog-sinks-datadog-logs/issues/21.

The recommended solution is to use HTTP instead of TCP. HTTP is now the default.

Let us know if it does not solve your problem.