New Relic /etc/newrelic-infra/logging.d/logging.yml
file content to collect Docker logs:
logs:
- name: alternatives.log
file: /var/log/alternatives.log
- name: cloud-init.log
file: /var/log/cloud-init.log
- name: auth.log
file: /var/log/auth.log
- name: dpkg.log
file: /var/log/dpkg.log
- name: containers
file: /var/lib/docker/containers/*/*.log
- name: newrelic-cli.log
file: /root/.newrelic/newrelic-cli.log
attributes:
newrelic-cli: true