Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimizukawa/docker-fluentd
simple docker container for fluentd on ubuntu
https://github.com/shimizukawa/docker-fluentd
Last synced: about 15 hours ago
JSON representation
simple docker container for fluentd on ubuntu
- Host: GitHub
- URL: https://github.com/shimizukawa/docker-fluentd
- Owner: shimizukawa
- License: mit
- Created: 2015-02-04T06:42:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-11T13:51:24.000Z (over 9 years ago)
- Last Synced: 2024-05-01T23:57:13.289Z (5 months ago)
- Language: Shell
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker fluentd
Docker image with:
- [fluentd](http://www.fluentd.org/)
- fluent-plugin-elasticsearch
- fluent-plugin-record-modifier
- fluent-plugin-exclude-filterwhich do nothing by default.
Elasticsearch info is controlled by `ES_HOST` and `ES_PORT` variables which will be overwritten if you link `elastic` search container.
Fluentd config is created using `/app/config/fluentd.conf.erb` template and could be easily overwritten in custom Dockerfile:
`ADD my-custom-fluentd-template.erb /app/config/fluentd.conf.erb`
If you want to override it dynamicaly, you can use volume for it.
`-v /path/to/fluentdconfdir:/etc/fluentd`
# Simple usage
`docker run -d -v /path/to/fluentdconfdir:/etc/fluentd shimizukawa/fluentd`
# settings
PATH
- `/app/bin/start`: fluentd bootstrapping bash script
- `/app/config/fluentd.conf.erb`: template for /etc/fluentd/fluentd.conf
- `/etc/fluentd/fluentd.conf`: fluentd config file that will be genrated by /app/bin/start
- `/var/log/fluentd/`: fluentd log directoryENVIRONMENT
- `ES_HOST`: elasticsearch host
- `ES_PORT`: elasticsearch port
- `ELASTICSEARCH_PORT_9200_TCP_ADDR`: will be assinged to `ES_HOST` if `ES_HOST` is not provided.
- `ELASTICSEARCH_PORT_9200_TCP_PORT`: will be assigned to `ES_PORT` if `ES_PORT` is not provided.fluentd.conf.erb
- see: [fluentd.conf.erb](https://github.com/shimizukawa/docker-fluentd/blob/master/config/fluentd.conf.erb)