Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override default log file directory #273

Closed
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+5 −4
Diff settings

Always

Just for now

@@ -144,6 +144,7 @@
default['datadog']['syslog']['udp'] = false
default['datadog']['syslog']['host'] = nil
default['datadog']['syslog']['port'] = nil
default['datadog']['log_file_directory'] = '/var/log/datadog'

# Web proxy configuration
default['datadog']['web_proxy']['host'] = nil
@@ -79,10 +79,10 @@ statsd_forward_port: <%= node['datadog']['statsd_forward_port'] %>

log_level: <%= node['datadog']['log_level'] %>

# collector_log_file: /var/log/datadog/collector.log
# forwarder_log_file: /var/log/datadog/forwarder.log
# dogstatsd_log_file: /var/log/datadog/dogstatsd.log
# pup_log_file: /var/log/datadog/pup.log
collector_log_file: <%= node['datadog']['log_file_directory'] %>/collector.log
forwarder_log_file: <%= node['datadog']['log_file_directory'] %>/forwarder.log
dogstatsd_log_file: <%= node['datadog']['log_file_directory'] %>/dogstatsd.log
pup_log_file: <%= node['datadog']['log_file_directory'] %>/pup.log

This comment has been minimized.

Copy link
@miketheman

# if syslog is enabled but a host and port are not set, a local domain socket
# connection will be attempted
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.