Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

One syslog to rule them all

  1. Build the syslog container:

    docker build -t syslog .

  2. Run it (replace logging.example.com with the fqdn of your central syslog
    server):

    docker run -e "SYSLOG_SERVER=logging.example.com" --name syslog -d -v /tmp/syslogdev:/dev syslog

  3. Start another container to send logs:

    docker run -v /tmp/syslogdev/log:/dev/log ubuntu logger hello

  4. Use the docker-exec command to inspect syslog container directly, after some logs have been generated

    docker exec -t syslog tail -f /var/log/syslog

  5. See in the log message show up in the "tail" container.

Env Vars

  • LOGGLY_HOST - get from loggly
  • LOGGLY_API_KEY - get from loggly
  • LOGGLY_TAG - e.g., production, staging, docker-east

Background

For more information on this approach, see Multiple Docker containers logging to a single syslog.

Docker Pull Command
Owner
roverdotcom
Source Repository