liveBook · Manning

Fluentd logs driver

As explained in Learn Docker in a Month of Lunches, Second Edition

The Fluentd logging driver is a Docker logging driver that forwards container log output directly to a Fluentd service.

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

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains configuration, Docker integration, metadata, tags, and verification, while deferring detailed Fluentd processing rules.
Examples
Uses a timecheck container, stdout output, Fluentd tags, and Elasticsearch-backed centralized logging.
What it assumes
Assumes basic Docker container commands and introduces Fluentd configuration through a runnable setup.
What you can do after
Operate a Docker container with the Fluentd driver and verify collection through Docker and Fluentd logs.
How it connects
Connects Docker Engine, Fluentd, Docker Compose, Elasticsearch, and Kibana.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.