Skip to content

AmjadHussainSyed/fluentd-elasticsearch-container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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:

About

Docker fluentd container to forward logs from other containers to elasticsearch

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 66.1%
  • Ruby 33.9%