Skip to content
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

Windows Service logs don't rotate, no way to set rotation for the service #246

Closed
jrowlison-dart opened this issue Oct 21, 2020 · 3 comments

Comments

@jrowlison-dart
Copy link

I've installed per the instructions for v4 here and as indicated the service was created.

I failed initially to set the log level appropriately for the system logs, so they were filling up the folder on my VM. That's on me, and I've since adjusted it. The fact that the excessive logs filled the drive struck me as odd so I looked for log rotation options.

But when I visit the system config page and the fluentd logging page I can't find instructions on how I could configure the windows service to rotate logs. Information about how to do this via command-line is provided, but the install guide and the automatic installation of the service suggest I should be able to use the agent via a service but if logs can't be set to rotate then I'm always at some risk of filling the drive.

Given the service is set up, I prefer to take advantage of it if I can, rather than trying to find another way of setting up the agent to start after machine restarts etc. But if it's just going to eventually fill the drive I'm not sure I have a choice.

Thanks in advance for any help.

@ashie
Copy link
Member

ashie commented Mar 19, 2021

Hmm, it seems that we should add document for it.
In addition, we should add also default rotation setting to td-agent.

refs:

@kenhys
Copy link
Contributor

kenhys commented May 17, 2021

FYI: fluent/fluentd#3352 was merged.

The following notation will be supported in the future release.

<system>
  <log>
     rotate_age ...
     rotate_size ...
  <log>
</system>

@kenhys
Copy link
Contributor

kenhys commented May 28, 2021

fluent/fluentd#3352 will be released in the next release,
and documentation will be updated by #316, so I'll close it.

Thank you for feedback, @jrowlison-dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants