/docker-compose-efk

Collect Container Logs with EFK (Elasticsearch + Fluentd + Kibana) via Docker Fluentd Logging Driver

Docker compose file for setting up a EFK service

A basic docker compose file that will set up Elasticsearch, Fluentd, and Kibana.

Example

The file example/httpd.yml shows how to configure a service to use EFK as its logging facility. To test using this file, just run:

docker-compose -f docker-compose.yml -f example/httpd.yml up

Then, go to your browser and access http://localhost:80 (httpd) and http://localhost:5601 (kibana). You should be able to see the httpd's logs in kibana's discovery tab. By the way, if you are wondering what is this index kibana asks the fist time you access it, it is fluentd-*.

After you are done, just run:

docker-compose -f docker-compose.yml -f example/httpd.yml rm -f

And all services will be reclaimed.