Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluentd in_tail wrong interval documentation for pos_file_compaction_interval #2917

Closed
juliantaylor opened this issue Mar 27, 2020 · 0 comments · Fixed by #2921
Closed

fluentd in_tail wrong interval documentation for pos_file_compaction_interval #2917

juliantaylor opened this issue Mar 27, 2020 · 0 comments · Fixed by #2921
Assignees

Comments

@juliantaylor
Copy link

juliantaylor commented Mar 27, 2020

Describe the bug
The fluentd in_tail source position file compaction documentation implies one can use units like 72h for the configuration but it appeary to strip the unit and use seconds.

https://docs.fluentd.org/input/tail#pos_file_compaction_interval currently has as example:

pos_file_compaction_interval 72h

To Reproduce
for example:

<source>
    @type tail
...
    pos_file_compaction_interval 24h
</source>

will print that it is cleaning up every 24 seconds, not every 24 hours for each configuration:

2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:46:56 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:20 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file
2020-03-27 08:47:44 +0000 [info]: #0 Clean up the pos file

Expected behavior
Either the configuration unit is used or the documentation adapted to state it expects seconds as input.

Your Environment

  • Fluentd or td-agent version: 1.9.2 td-agent 3.6.0
  • Kernel version: uname -r

Your Configuration

see reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants