The Fluentd logging driver forwards container output directly from Docker Engine to a Fluentd service. Fluentd can filter, enrich, and forward records to storage or another target while preserving access through docker logs. section 19.3
A practical Fluentd setup works like this:
- Use tags to identify records by application or image, then forward them to a central store such as Elasticsearch. section 19.3
Minimal collection check
Start the Fluentd container, run timecheck with Docker’s Fluentd driver, then compare docker logs timecheck5 with docker logs --tail 1 fluentd. Both expose the collected output, while Fluentd adds container identity metadata. section 19.3
