Public Repository

Last pushed: a year ago
Short Description
Health check and better time stamp.
Full Description

Github: https://github.com/n0rmanc/fluentd-elasticsearch-container

fluentd-elasticsearch-container

The container to send all containers' logs to an Elasticsearch container.

Running

Simple run:
docker run -d --name some_cool_name oosidat/fluentd-elasticsearch-container
Run in vagrant box alongside other docker containers
  • Ensure that there's an ElasticSearch container running at port 9200
  • Run fluentd container:
    docker run --net=host -d --name some_cool_name oosidat/fluentd-elasticsearch-container
    
  • Ensure that other containers (which need to send logs) have their log driver set to fluentd
Supported Environment Variables

Pass using -e in docker run or using the environment key using docker-compose

Name Description Default
ES_HOST ElasticSearch host localhost
ES_PORT ElasticSearch port 9200
ES_INDEX ElasticSearch index name fluentd
ES_TYPE ElasticSearch index type fluentd
MATCH_PATTERN fluentd matching pattern, used in <filter> & <match> docker.**
FLUENTD_OPT other options for running fluent none (empty)
Credits:

*oosidat/fluentd-elasticsearch-container

Docker Pull Command
Owner
n0rmanc

Comments (0)