httpd's logs will 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, to use Fluentd's official Docker image and additionally install Elasticsearch plugin.
fluentd/conf/fluent.conf. in_forward plugin is used for receive logs from Docker logging driver, and out_elasticsearch is for forwarding logs to Elasticsearch.
httpdto generate some access logs.
curlcommand is always your friend.
http://localhost:5601/with your browser. Then, you need to set up the index name pattern for Kibana. Please specify
Index name or patternand press
Discovertab to seek for the logs. As you can see, logs are properly collected into Elasticsearch + Kibana, via Fluentd.