Menu
Open source
docker
The docker
stage is a parsing stage that reads log lines in the standard
format of Docker log files.
Schema
yaml
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
: Eitherstdout
orstderr
time
: The timestamp string of the log line
Examples
For the given pipeline:
yaml
- 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\n
stream
:stderr
timestamp
:2019-04-30T02:12:41.8443515
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with logging and Grafana Loki
See a demo of the updated features in Loki, and how to create metrics from logs and alert on your logs with powerful Prometheus-style alerting rules.

Essential Grafana Loki configuration settings
This webinar focuses on Grafana Loki configuration including agents Promtail and Docker; the Loki server; and Loki storage for popular backends.

Scaling and securing your logs with Grafana Loki
This webinar covers the challenges of scaling and securing logs, and how Grafana Enterprise Logs powered by Grafana Loki can help, cost-effectively.