docker
Caution
Promtail has been deprecated and is in Long-Term Support (LTS) through February 28, 2026. Promtail will reach an End-of-Life (EOL) on March 2, 2026. You can find migration resources here.
The docker stage is a parsing stage that reads log lines in the standard
format of Docker log files.
Schema
docker: {}Unlike most stages, the docker stage provides no configuration options and
only supports the specific Docker log format. Each log line from Docker is
written as JSON with the following keys:
log: The content of log linestream: Eitherstdoutorstderrtime: The timestamp string of the log line
Examples
For the given pipeline:
- docker: {}Given the following log line:
{"log":"log message\n","stream":"stderr","time":"2019-04-30T02:12:41.8443515Z"}The following key-value pairs would be created in the set of extracted data:
output:log message\nstream:stderrtimestamp:2019-04-30T02:12:41.8443515



