-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cannot use "enum" for specifying "rotate_age". #4227
Comments
Thanks for your report! Looks like this is a bug of Fluentd.
I can reproduce this at least since v1.15.3. |
Hi, Thanks, |
@mrudrego Sure! Thanks! |
Hi @daipom , I tried reproducing the issue by installing td-agent rpm "td-agent 4.5.1" which is bundled with fluentd version 1.16.2. Configuration used:
td-agent process is running for more than 2 days now and there are no errors logs as mentioned. Logs below:
Also the files are rotated as expected for every day as shown below:
Please let me know if i'm missing anything. Or the issue is actually fixed? Snippet from the file /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.16.2/lib/fluent/system_config.rb inside the container.
Thanks, |
@mrudrego $ td-agent If so, Fluentd outputs its own logs to the standard output. In fact, you don't need to execute the You can confirm the error when restarting the $ sudo systemctl restart td-agent By default, td-agent outputs Fluentd's logs to Additional information: |
It would be better to run Fluentd directly from Ruby to confirm its functionality, rather than focusing on the package. |
@daipom, thank you very much for the guidance. Will check this. Thanks, |
Describe the bug
In the configuration of rotate_age, you cannot specify "daily". While I haven't tested "weekly" or "monthly", if you set rotate_age to "daily", it will display the following error:
To Reproduce
の設定があれば再現する
Expected behavior
I wanted both the logs output by fluentd and the logs output by fluentd:out_file to be rotated daily using the rotate_age daily configuration. Additionally, I wanted to know at what time each day the rotation would occur.
Your Environment
Your Configuration
Your Error Log
logger/period.rb:21:in 'next_rotate_time': invalid :shift_age :daily, should be daily, weekly, monthly, or everytime (ArgumentError).
Additional context
No response
The text was updated successfully, but these errors were encountered: