A image setting with Elasticsearch output plugin to send event data to Elasticsearch server.
You must have a server with Elasticsearch installed and configured on port 9200.
Ensure that Elasticsearch is running and run the container:
docker run --rm -p 24224:24224 bortes/fluentd-elasticsearch
After that, just run your desired dockerized application and setting logger output. For example:
docker run --rm -p 8080:80 --log-driver=fluentd --log-opt fluentd-address=localhost:24224 nginx:alpine
Enable the pipeline for Elasticsearch.
Based on Fluentd with Elasticsearch plugin.
About Docker logger output and Logging Driver to Fluentd.