Sign inSign up

byxorna/fluentd

By byxorna

•Updated over 11 years ago

Image
0

1.6K

byxorna/fluentd repository overview

⁠Docker fluentd

Docker image with:

which tails docker containers logs and sends them to an elasticsearch host

By default it adds some additional tags using record-modifier plugin and sends only stderr logs.

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.tmpl docker-gen template and could be easily overwritten in custom Dockerfile:

ADD my-custom-fluentd-template.tmpl /app/config/fluentd.tmpl

⁠Simple usage

docker run -d -v /var/run/docker.sock:/tmp/docker.sock -v /var/lib/docker:/var/lib/docker michaloo/fluentd

By default only stderr logs from container created with "LOG=true" environmental variable would be send.

⁠Run example

Provided example assumes using crane⁠. Change dir to examples/ and execute crane lift. This will bring three containers:

  • michaloo/fluentd
  • michaloo/elasticsearch
  • ubuntu:14.04 as log producer

After lifting them up you can go to http://your-docker-host:9200/_plugin/kibana3/index.html#/dashboard/file/logstash.json to see the example logs (you may need to wait a minute for logs to show).

Tag summary

Content type

Image

Digest

sha256:be28c8fc9…

Size

154.4 MB

Last updated

over 11 years ago

docker pull byxorna/fluentd