in_tail
: group
setting judges the limit by the average number, not the total number
#4184
Labels
bug
Something isn't working
Describe the bug
#3535 (comment)
The
limit
ofgroup
setting should control the total number of lines collected for a group (https://docs.fluentd.org/input/tail#less-than-group-greater-than-section).However, it judges the limit by the average number, not the total number.
To Reproduce
Run Fluentd by the following command with the config below.
(
limit: 10
andrate_limit: 1m
)After running Fluentd, run the following command on another console to add logs to
/test/fluentd/input/A.log
.$ for i in `seq 2 9`; do sleep 1; echo A-$i >> /test/fluentd/input/A.log; done;
After 9 seconds, the contents of these log files to be collected are as follows.
/test/fluentd/input/A.log
/test/fluentd/input/B.log
However, the output of Fluentd is as
Your Error Log
below.This shows that the data is limited by the average number, not the total number.
After collecting 5 lines from the
/test/fluentd/input/A.log
,in_tail
stops collecting.After 1 minutes,
in_tail
restarts collecting.Expected behavior
The
limit
ofgroup
setting should control the total number of lines collected for a group (https://docs.fluentd.org/input/tail#less-than-group-greater-than-section).So all 10 lines in
To Reproduce
must be collected in one period.Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: