-
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
Enable log rotation for Fluent::Log
#1231
Comments
What happens when |
|
@ganmacs What does it mean? Which one?:
|
This one.
|
I meant that we should tell users that the default value of |
I added a description about the case of |
As the log file increases, it becomes difficult to handle the log file.
So, I want to enable the log rotation for
Fluent::Log
to keep log files down to a manageable size.I'll add these command line arguments to
fluentd
command.--log-rotate-age
The number of old log files to keep, or frequency of rotation (
daily
,weekly
ormonthly
). The default value is 5. it is used when you set a value to--log-rotate-size
and don't set a value to--log-rotate-age
.If you set 0 as a value of--log-rotate-age
, the logger will do no log rotation.--log-rotate-size
Maximum logfile size (only applies when
log-rotate-age
is a number). The default value is 1M.it is used when you set a value to
--log-rotate-age
and don't set a value to--log-rotate-size
.The text was updated successfully, but these errors were encountered: