Sign inSign up

vincit/logspout-gelf

By vincit

•Updated about 7 years ago

Logspout with GELF adapter

Image
1

10M+

vincit/logspout-gelf repository overview

⁠Logspout with GELF adapter

This image contains Logspout⁠ which is compiled with GELF adapter⁠ so you can forward Docker logs in GELF format using gelf://hostname:port as the Logspout command.

⁠Usage

Always read the official instructions⁠ first. This image should work the same way. Just use gelf as the protocol scheme.

Remember to set the hostname of the container to something meaningfull, because that gets set as the source of the GELF message.

⁠CLI example

docker run -d --name=logspout --restart=unless-stopped -h $(hostname -f) -v /var/run/docker.sock:/var/run/docker.sock vincit/logspout-gelf gelf://my.log.server:12201

⁠Docker Compose example

You could use this image with the following docker-compose file:

version: '2'

services:
  logspout:
    image: vincit/logspout-gelf
    hostname: my.message.source
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: gelf://my.log.server:12201
    restart: unless-stopped

⁠Disclaimer

This image is provided as-is and only with best effort. We try to update this image with the latest Logspout stable version.

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

about 7 years ago

docker pull vincit/logspout-gelf