https://github.com/vincit/logspout-gelf
Logspout with GELF adapter
https://github.com/vincit/logspout-gelf
docker gelf gelf-adapter graylog logging logspout
Last synced: about 1 year ago
JSON representation
Logspout with GELF adapter
- Host: GitHub
- URL: https://github.com/vincit/logspout-gelf
- Owner: Vincit
- Created: 2017-02-17T09:42:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T12:35:40.000Z (over 7 years ago)
- Last Synced: 2025-04-03T06:41:58.236Z (about 1 year ago)
- Topics: docker, gelf, gelf-adapter, graylog, logging, logspout
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 15
- Watchers: 6
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logspout with GELF adapter
This image contains [Logspout](https://github.com/gliderlabs/logspout) which is compiled with [GELF adapter](https://github.com/rickalm/logspout-gelf) 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.