https://github.com/thojkooi/logspout-logstash
Docker image with logspout-logstash installed
https://github.com/thojkooi/logspout-logstash
docker docker-image logspout logspout-logstash
Last synced: 2 months ago
JSON representation
Docker image with logspout-logstash installed
- Host: GitHub
- URL: https://github.com/thojkooi/logspout-logstash
- Owner: thojkooi
- Created: 2017-10-02T16:42:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T22:29:21.000Z (about 8 years ago)
- Last Synced: 2025-07-28T22:44:12.945Z (11 months ago)
- Topics: docker, docker-image, logspout, logspout-logstash
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logspout with Logstash adapter
Logspout with logspout-logstash installed. [Logspout-logstash](https://github.com/looplab/logspout-logstash) by looplab is a minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash.
[](https://hub.docker.com/r/thojkooi/logspout/)
### Configuration options
The following environment variables for containers can be picked up on.
| Environment variable | Description |
|----------------------|-------------|
| `LOGSTASH_TAGS` | Comma seperated list of values added as `"tags"": ["value"]` for Logstash. Example: `-e LOGSTASH_TAGS="docker,production"` |
| `LOGSTASH_FIELDS` | Comma seperated list of additional fields added to the json output forwarded to Logstash. Example: `-e LOGSTASH_FIELDS="environment=production,example=helloworld"` |
| `DOCKER_LABELS` | Setting this to a non empty value will also forward all Docker labels to Logstash. |
See the readme on [looplap/logspout-logstash](https://github.com/looplab/logspout-logstash) for more information.
### Example compose file
```yml
version: '2'
services:
logspout:
image: thojkooi/logspout:v3.2.4
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- ROUTE_URIS=logstash+tcp://logstash.localhost:5001
```