Increase the Number of Log Files Tailed by the Agent

By default the Agent can tail up to 200 log files on Windows and MacOS, and 500 log files on other operating systems. This limit is set to avoid performances issue when wildcards are set on huge directories.

To increase this limit, set the value of open_files_limit in the Agent’s configuration file (/etc/datadog-agent/datadog.yaml) in the logs_config section:

logs_config:
  open_files_limit: 500

For containerized environments you can set the DD_LOGS_CONFIG_OPEN_FILES_LIMIT environment variable.

Note: Increasing the tailed logs files limit might increase the resource consumption of the Agent.