httpdwill be ingested into Elasticsearch + Kibana, via Fluentd.
docker-compose.ymlfor Docker Compose. Docker Compose is a tool for defining and running multi-container Docker applications.
fluentd/Dockerfilewith the following content using the Fluentd official Docker image; and then, install the Elasticsearch plugin:
forwardinput plugin receives logs from the Docker logging driver and
elasticsearchoutput plugin forwards these logs to Elasticsearch.
docker pscommand to verify that the four (4) containers are up and running:
curlcommand to generate some access logs like this:
http://localhost:5601/app/management/kibana/indexPatternsand set up the index name pattern for Kibana. Specify
Index name or patternand click
Discovertab to check the logs. As you can see, logs are properly collected into the Elasticsearch + Kibana, via Fluentd.