liveBook · Manning

Log driver

As explained in Cloud Observability in Action

A logging driver is a runtime component that transfers container-generated log records to a configured logging destination or collector.

A log driver is a container-runtime component that transfers application log records—typically emitted to stdout—to a configured destination or collector. Docker supports drivers such as journald, syslog, Fluentd, and cloud-provider formats; the runtime supplies concrete logging because Kubernetes CRI does not define it directly. section 3.2.2

Routing container logs through Fluentd and Fluent Bit

A Docker Compose service can select the fluentd driver, assign a tag, and send records to Fluent Bit. Fluent Bit receives the Forward stream and routes matching records to an OpenSearch index for searching and visualization. This separates the container’s log emission from collection and backend storage. section 4.1.1

docker run --log-driver=awslogs \
           --log-opt awslogs-region=eu-west-1 \
           --log-opt awslogs-group=docker-test \
           --log-opt awslogs-create-group=true \
       ...

Shows a Docker command that configures the awslogs driver with an AWS region, log group, and automatic group creation. section 3.2.2

How Cloud Observability in Action covers it

How deep it goes
Explains driver selection and a working pipeline, but defers detailed logging semantics and backend operation.
Examples
Uses Docker awslogs configuration and a Compose pipeline that indexes ho11y container logs in OpenSearch.
What it assumes
Assumes basic containers and Docker familiarity while establishing stdout logging and runtime-specific log support.
What you can do after
Configure container logging with a named Docker driver and route records through Fluent Bit to a queryable backend.
How it connects
Connects containers and Docker with Kubernetes CRI, stdout logging, Fluentd, Fluent Bit, and OpenSearch.

Also explained in

Compare how 2 books explain log driver →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Cloud Observability in Action. The section links point to the parts of the book it draws on.