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
NOTE: When --log-rotate-age is specified on Windows, log files are separated into log-supervisor-0.log, log-0.log, ..., log-N.log where N is generation - 1 due to the system limitation. Windows does not permit delete and rename files simultaneously owned by another process.
NOTE: When --log-rotate-size is specified on Windows, log files are separated into log-supervisor-0.log, log-0.log, ..., log-N.log where N is generation - 1 due to the system limitation. Windows does not permit delete and rename files simultaneously owned by another process.
As this document says, If rotation is enabled, each process must output a different log file on Windows.
Describe the bug
https://docs.fluentd.org/deployment/logging#log-rotation-setting
As this document says, If rotation is enabled, each process must output a different log file on Windows.
However, when using log-rotate setting of
system
directive, the supervisor process outputs its log tolog-0.log
, notlog-supervisor-0.log
.When using command line options such as
--log-rotate-age
, the following code incommand/fluentd.rb
fixes the path for the supervisor.This process seems to be missing for log-rotate setting of
system
directive.To Reproduce
Just run the fluentd with the following environment and the following config.
> bundle exec fluentd -c fluentd.conf -o fluentd.log
Expected behavior
First, the following two files are created.
fluentd-0.log
fluentd-supervisor-0.log
Then, they will be rotated without an error.
Your Environment
Your Configuration
Your Error Log
Immediately the following error begins to output to the console.
Additional context
When using command line options, this problem does not occur.
The text was updated successfully, but these errors were encountered: