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
+8
Original file line number
Diff line number
Diff line change
@@ -1951,6 +1951,12 @@ 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. If the buffer increases above this size, then the line will
1957
+
be sent to output immediately, and the rest of the line discarded. To change this behaviour, set
1958
+
`limits_config.max_line_size`to a non-zero value to apply a hard limit.
1959
+
1954
1960
The configuration is inherited from [Prometheus' Docker service discovery](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#docker_sd_config).
1955
1961
1956
1962
```yaml
@@ -2076,6 +2082,8 @@ The optional `limits_config` block configures global limits for this instance of
2076
2082
[max_streams: <int> | default = 0]
2077
2083
2078
2084
# Maximum log line byte size allowed without dropping. Example: 256kb, 2M. 0 to disable.
2085
+
# If disabled, targets may apply default buffer size safety limits. If a target implements
2086
+
# a default limit, this will be documented under the `scrape_configs` entry.
2079
2087
[max_line_size: <int> | default = 0]
2080
2088
# Whether to truncate lines that exceed max_line_size. No effect if max_line_size is disabled
0 commit comments