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

Add a configuration option to rollover or truncate log file #1279

Closed
wutkemtt opened this issue Feb 17, 2020 · 3 comments
Closed

Add a configuration option to rollover or truncate log file #1279

wutkemtt opened this issue Feb 17, 2020 · 3 comments

Comments

@wutkemtt
Copy link

[ ] Defect
[X] Feature Request or Change Proposal

Feature Requests

Use Case:

The NATS log file can grow to gigabytes when it is not cleared or deleted manually or via cron job.

Proposed Change:

Add a configuration option to rollover the log file on a daily or similar base or based on a fix maximum size.

Who Benefits From The Change(s)?

As the log file is locked by the NATS service it could not rolled over by a cron or manually without stopping the service first. Having a configuration option for this would make the life of all NATS operators much easier.

Alternative Approaches

@ripienaar
Copy link
Contributor

I think LogSizeLimit does what you want, its a recent addition in #1202

@kozlovic
Copy link
Member

@wutkemtt
Copy link
Author

That will solve our problem, thanks.
We will upgrade to the newest version immediately.

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