keymetrics/pm2-logrotate

Log files are created and deleted instantly

zerefdev opened this issue · 3 comments

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

logrotate

I am using default config

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?

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
}

Having same issue
image
image

Currently trying to increase retain value