Skip to content

Commit

Permalink
Force HTTP logs when High Availability mode is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Mar 12, 2024
1 parent af641f1 commit 96486b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comp/logs/agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ func BuildEndpointsWithConfig(coreConfig pkgconfigmodel.Reader, logsConfig *Logs
log.Warnf("Use of illegal configuration parameter, if you need to send your logs to a proxy, "+
"please use '%s' and '%s' instead", logsConfig.getConfigKey("logs_dd_url"), logsConfig.getConfigKey("logs_no_ssl"))
}
if logsConfig.isForceHTTPUse() || logsConfig.obsPipelineWorkerEnabled() || (bool(httpConnectivity) && !(logsConfig.isForceTCPUse() || logsConfig.isSocks5ProxySet() || logsConfig.hasAdditionalEndpoints())) {

haEnabled := coreConfig.GetBool("ha.enabled")
if logsConfig.isForceHTTPUse() || logsConfig.obsPipelineWorkerEnabled() || haEnabled || (bool(httpConnectivity) && !(logsConfig.isForceTCPUse() || logsConfig.isSocks5ProxySet() || logsConfig.hasAdditionalEndpoints())) {
return BuildHTTPEndpointsWithConfig(coreConfig, logsConfig, endpointPrefix, intakeTrackType, intakeProtocol, intakeOrigin)
}
log.Warnf("You are currently sending Logs to Datadog through TCP (either because %s or %s is set or the HTTP connectivity test has failed) "+
Expand Down

0 comments on commit 96486b7

Please sign in to comment.