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

Log files are created and deleted instantly #167

Open
zerefdev opened this issue Jan 7, 2021 · 3 comments
Open

Log files are created and deleted instantly #167

zerefdev opened this issue Jan 7, 2021 · 3 comments

Comments

@zerefdev
Copy link

zerefdev commented Jan 7, 2021

Hello,
I noticed that there is no log files saved since jan 01.
And tonight I saw this:

logrotate

I am using default config

@mattjneuber
Copy link

I know this is a very, very old post, but I came here because I'm having exactly the same problem. Did you ever figure it out?

@zerefdev
Copy link
Author

I ended up using logrotate
Example: /etc/logrotate.d/app

/path-to-log-file
/path-to-another-log-file
{
  daily
  rotate 30
  missingok
  notifempty
  copytruncate # very important when using pm2
  compress
}

@tyl1996
Copy link

tyl1996 commented Jan 15, 2024

Having same issue
image
image

Currently trying to increase retain value

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