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

Logs files are overwritten every time rotation happens #135

Open
adityagoel19 opened this issue Sep 5, 2019 · 0 comments
Open

Logs files are overwritten every time rotation happens #135

adityagoel19 opened this issue Sep 5, 2019 · 0 comments

Comments

@adityagoel19
Copy link

Here's my config:
rotateInterval │ 0 0 0 * * 0
dateFormat │ YYYY-MM-DD
max_size │ 50M

This should mean that logs should rotate every Sunday at midnight. However I think I am generating more logs than 50M every day. So log rotation happens every few hours. But I have just one log file generated per day which upon inspection does not contain entire day logs. I am losing logs here in PRODUCTION which is quite critical. Expected behavior is that log file name append something at the end like log__2019-09-05-1.log, log__2019-09-05-2.log if a log file named log__2019-09-05.log already exists.

I really think this should be documented better. By not having this what you really want the devs to do is that figure how much size of logs I am generating, and after that configure logrotate module in a way that no logs are lost.

Please help me if my understanding is wrong.

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

1 participant