Public Repository

Last pushed: 2 days ago
Short Description
Fork of gliderlabs/logspout with enhancements for stability. Works with LogDNA perfectly.
Full Description

Fork of logspout maintained at https://github.com/Quiq/logspout

See changes here https://github.com/Quiq/logspout/blob/master/ABOUT_THIS_FORK.md

Dockerfile


FROM alpine:3.5

RUN apk add --no-cache ca-certificates
ADD logspout /usr/local/bin/

USER nobody
ENTRYPOINT ["/usr/local/bin/logspout"]

Usage

Example running container via ansible using logdna:

- name: Start Logspout container
  docker_container: 
    name: logspout
    labels: {"name": "logspout"}
    image: quiq/logspout:20170302
    command: syslog+tls://syslog-a.logdna.com:NNNNN
    state: started
    restart_policy: always
    groups: 999
    read_only: True
    env:
      SERVICE_IGNORE=1
      SYSLOG_STRUCTURED_DATA='logdna@NNNNN tags="{{cluster}}"'
      SYSLOG_HOSTNAME="{{ ansible_nodename }}"
      SYSLOG_TAG='{{ '{{' }} index .Container.Config.Labels "name" {{ '}}' }}'
      INACTIVITY_TIMEOUT=1m
      HTTP_PORT=8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

999 is the group id for docker so it can read the docker.sock as user nobody.

Docker Pull Command
Owner
quiq

Comments (0)