Skip to content

Commit a7039ca

Browse files
committed
Add auto-compaction doc
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
1 parent bd7f64a commit a7039ca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

plugins/input/tail.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,21 @@ files with dynamic path setting. I will fix this problem in the future.
261261
Check [this issue](https://github.com/fluent/fluentd/issues/1126).
262262

263263

264+
### pos\_file\_compaction\_interval
265+
266+
| type | default | version |
267+
|:-------|:--------|:--------|
268+
| time | nil | 1.9.2 |
269+
270+
The interval of doing compaction of pos file.
271+
The targets of compaction are unwatch file's line, unparsable file's line and duplicated line.
272+
You can use this value when pos\_file option is set.
273+
274+
```
275+
pos_file /var/log/td-agent/tmp/access.log.pos
276+
pos_file_compaction_interval 72h
277+
```
278+
264279
### `<parse>` directive (required)
265280

266281
The format of the log. `in_tail` uses parser plugin to parse the log.

0 commit comments

Comments
 (0)