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

Limit log history to a certain amount of days #2790

Open
Korben3 opened this issue Jan 27, 2019 · 2 comments

Comments

@Korben3
Copy link

commented Jan 27, 2019

Feature request: Limit log history to a certain amount of days

Expected behavior

lisk.log "should" only store a log of the last n days.

Actual behavior

By default and left alone, lisk.log grows infinitely.

Steps to reproduce

Install and run core, set fileLogLevel to debug and leave the server alone until hard drive is full.

Reason for request

Several users running core reported that their server logs quickly fill up the hard drive. Which will cause the node to go offline.

Example:
image

There is a solution using logrotate, but the solution to this issue could be greatly simplified for the user by expanding config with the option: logFileHistoryLength.

Example:
image

@MaciejBaj

This comment has been minimized.

Copy link
Member

commented Jan 30, 2019

Thanks for the idea, @Nazgolze @4miners @fchavant what do you think?

@fchavant

This comment has been minimized.

Copy link
Member

commented Jan 30, 2019

It is indeed a good idea to rotate the log files and we explain how to do so with logrorate in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.