Skip to content

Instantly share code, notes, and snippets.

@wnz99
Last active October 19, 2021 21:35
Show Gist options
  • Save wnz99/3918fd38866906a465eea631d2dda7aa to your computer and use it in GitHub Desktop.
Save wnz99/3918fd38866906a465eea631d2dda7aa to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment