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
If the config doesn't have rotation options, this issue doesn't occur either.
Expected behavior
If rotation is enabled but the log file path is not specified,
the rotation setting is ignored, and Fluentd normally starts with output to standard output as before v1.16.0.
Your Environment
- Fluentd version: 1.16.1
- Operating system: Windows Home 10
- Kernel version: 3.1.7-340.x86_64
Your Configuration
<system>
<log>
rotate_age 5
</log>
</system>
<source>
@type sample
tag test
</source>
<match test.**>
@type stdout
</match>
Your Error Log
C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/log.rb:77:in `initialize': no implicit conversion of nil into String (TypeError) path = Pathname(path) ^^^^ from C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/log.rb:77:in `Pathname' from C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/log.rb:77:in `per_process_path' from C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/supervisor.rb:701:in `setup_global_logger'
from C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/supervisor.rb:624:in `configure' from C:/Users/reang/Documents/work/fluentd/fluentd/lib/fluent/command/fluentd.rb:351:in `<top (required)>' from <internal:C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require' from <internal:C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from C:/Users/reang/Documents/work/fluentd/fluentd/bin/fluentd:15:in `<top (required)>' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/bin/fluentd:25:in `load' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/bin/fluentd:25:in `<main>'
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If you enable log rotation and don't specify the log path, then Fluentd fails to start.
nil
check for@log_path
to be passed toFluent::Log.per_process_path()
is missing:fluentd/lib/fluent/supervisor.rb
Lines 696 to 705 in dc7e4b2
To Reproduce
Launch Fluentd with the config below, which enables rotation.
If you specify the log path, this issue doesn't occur.
If the config doesn't have rotation options, this issue doesn't occur either.
Expected behavior
If rotation is enabled but the log file path is not specified,
the rotation setting is ignored, and Fluentd normally starts with output to standard output as before v1.16.0.
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: