Fix logs agent conditional
MODIFY
attributes/default.rb
attributes/default.rb
@@ -368,7 +368,7 @@ default['datadog']['process_agent']['rtprocess_interval'] = nil
default['datadog']['process_agent']['container_interval'] = nil
default['datadog']['process_agent']['rtcontainer_interval'] = nil
-# Logs functionality settings
+# Logs functionality settings (Agent 6 only)
# Set `enable_log_agent` to:
# * `true` to explicitly enable the log agent
# * `false` to explicitly disable it

MODIFY
templates/default/datadog.yaml.erb
templates/default/datadog.yaml.erb
@@ -92,11 +92,7 @@ agent_config = @extra_config.merge({
log_file: ::File.join(node['datadog']['log_file_directory'], "agent.log"),
# log agent options
- if node['datadog']['agent6']
logs_enabled: node['datadog']['enable_logs_agent'],
- else
- log_enabled: node['datadog']['enable_logs_agent'],
- end
# process agent options
process_config: {

Fix logs agent conditional (#526)