pm2-logrotate icon indicating copy to clipboard operation
pm2-logrotate copied to clipboard

Log files are created and deleted instantly

Open zerefdev opened this issue 4 years ago • 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

zerefdev avatar Jan 07 '21 23:01 zerefdev

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?

mattjneuber avatar Jun 12 '23 19:06 mattjneuber

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
}

zerefdev avatar Jun 12 '23 19:06 zerefdev

Having same issue image image

Currently trying to increase retain value

tyl1996 avatar Jan 15 '24 01:01 tyl1996