Skip to content

Commit a7088c8

Browse files
committed
Added to README for supporting Docker v19.03
This commit adds an example for `use_partial_metadata` for Docker v19.03 logs. Also fixes the previous example for handling Docker logs (changed the key from 'message' to 'log' as Docker's fluentd driver wraps the container's log line in the 'log' key as seen in this commit moby/moby@361a582#diff-4e76640044eca60a4a45cd8631049282R112)
1 parent f6004e2 commit a7088c8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,24 @@ Handle Docker logs splitted in several parts (using `partial_message`), and do n
168168
```aconf
169169
<filter>
170170
@type concat
171-
key message
171+
key log
172172
partial_key partial_message
173173
partial_value true
174174
separator ""
175175
</filter>
176176
```
177177

178+
(Docker v19.03+) Handle Docker logs splitted in several parts (using `use_partial_metadata`), and do not add new line between parts.
179+
180+
```aconf
181+
<filter>
182+
@type concat
183+
key log
184+
use_partial_metadata true
185+
separator ""
186+
</filter>
187+
```
188+
178189
Handle Docker logs splitted in several parts (using newline detection), and do not add new line between parts (prior to Docker 18.06).
179190

180191
```aconf

0 commit comments

Comments
 (0)