Sign inSign up

roverdotcom/syslog

By roverdotcom

•Updated almost 11 years ago

Image
0

477

roverdotcom/syslog repository overview

⁠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⁠.

Tag summary

Content type

Image

Digest

sha256:82eebdbb3…

Size

82.5 MB

Last updated

almost 11 years ago

docker pull roverdotcom/syslog