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

rotate is ignoring the inteval #166

Open
paries opened this issue Dec 26, 2020 · 0 comments
Open

rotate is ignoring the inteval #166

paries opened this issue Dec 26, 2020 · 0 comments

Comments

@paries
Copy link

paries commented Dec 26, 2020

Hello,

the rotate is creating new files constantly, seems to be ignoring my pm2-logrotate:rotateInterval

these are my settings

$ pm2 set pm2-logrotate:max_size 10MB
$ pm2 set pm2-logrotate:retain 7
$ pm2 set pm2-logrotate:compress true
$ pm2 set pm2-logrotate:dateFormat YYYYMMDDHHmmss
$ pm2 set pm2-logrotate:workerInterval 30
$ pm2 set pm2-logrotate:rotateInterval 0 0 * * *
$ pm2 set pm2-logrotate:rotateModule true

this is from just a couple of minutes from pm2 log
This is a new install on a new server

3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145207.log.gz" has been created
3|pm2-logrotate | "pm2-logrotate-out__20201226144835.log.gz" has been deleted
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145237.log.gz" has been created
3|pm2-logrotate | "pm2-logrotate-out__20201226144905.log.gz" has been deleted

3|pm2-logrotate | "/home/nodeapps/logs/SparkPostListener_out__20201226145307.log.gz" has been created
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145307.log.gz" has been created
3|pm2-logrotate | "SparkPostListener_out__20201226144705.log.gz" has been deleted
3|pm2-logrotate | "pm2-logrotate-out__20201226144935.log.gz" has been deleted
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145337.log.gz" has been created
3|pm2-logrotate | "pm2-logrotate-out__20201226145007.log.gz" has been deleted

3|pm2-logrotate | "/home/nodeapps/logs/SparkPostListener_out__20201226145407.log.gz" has been created
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145407.log.gz" has been created
3|pm2-logrotate | "SparkPostListener_out__20201226144735.log.gz" has been deleted
3|pm2-logrotate | "pm2-logrotate-out__20201226145037.log.gz" has been deleted

3|pm2-logrotate | "/home/nodeapps/logs/SparkPostListener_out__20201226145437.log.gz" has been created
3|pm2-logrotate | "/home/nodeapps/logs/BandWidthListener_out__20201226145437.log.gz" has been created
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145437.log.gz" has been created
3|pm2-logrotate | "SparkPostListener_out__20201226144805.log.gz" has been deleted
3|pm2-logrotate | "pm2-logrotate-out__20201226145107.log.gz" has been deleted
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145507.log.gz" has been created
3|pm2-logrotate | "pm2-logrotate-out__20201226145137.log.gz" has been deleted

3|pm2-logrotate | "/home/nodeapps/logs/SparkPostListener_out__20201226145537.log.gz" has been created
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145537.log.gz" has been created
3|pm2-logrotate | "SparkPostListener_out__20201226144935.log.gz" has been deleted
3|pm2-logrotate | "pm2-logrotate-out__20201226145207.log.gz" has been deleted

3|pm2-logrotate | "/home/nodeapps/logs/SparkPostListener_out__20201226145607.log.gz" has been created
3|pm2-logrotate | "/root/.pm2/logs/pm2-logrotate-out__20201226145607.log.gz" has been created
3|pm2-logrotate | "SparkPostListener_out__20201226145007.log.gz" has been deleted
3|pm2-logrotate | "pm2-logrotate-out__20201226145237.log.gz" has been deleted

Thanks for any help

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