You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/sources/send-data/promtail/configuration.md
+9
Original file line number
Diff line number
Diff line change
@@ -1951,6 +1951,13 @@ or [journald](https://docs.docker.com/config/containers/logging/journald/) loggi
1951
1951
Note that the discovery will not pick up finished containers. That means
1952
1952
Promtail will not scrape the remaining logs from finished containers after a restart.
1953
1953
1954
+
The Docker target correctly joins log segments if a long line was split into different frames by Docker.
1955
+
To avoid hypothetically unlimited line size and out-of-memory errors in Promtail, this target applies
1956
+
a default soft line size limit of 256 kiB corresponding to the default max line size in Loki.
1957
+
If the buffer increases above this size, then the line will be sent to output immediately, and the rest
1958
+
of the line discarded. To change this behaviour, set `limits_config.max_line_size` to a non-zero value
1959
+
to apply a hard limit.
1960
+
1954
1961
The configuration is inherited from [Prometheus' Docker service discovery](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#docker_sd_config).
1955
1962
1956
1963
```yaml
@@ -2076,6 +2083,8 @@ The optional `limits_config` block configures global limits for this instance of
2076
2083
[max_streams: <int> | default = 0]
2077
2084
2078
2085
# Maximum log line byte size allowed without dropping. Example: 256kb, 2M. 0 to disable.
2086
+
# If disabled, targets may apply default buffer size safety limits. If a target implements
2087
+
# a default limit, this will be documented under the `scrape_configs` entry.
2079
2088
[max_line_size: <int> | default = 0]
2080
2089
# Whether to truncate lines that exceed max_line_size. No effect if max_line_size is disabled
0 commit comments