Created
March 26, 2026 02:54
-
-
Save link89/f3d061db5395b33f61bf56716dd8a0a6 to your computer and use it in GitHub Desktop.
log rotate setup for pm2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pm2 install pm2-logrotate | |
| pm2 set pm2-logrotate:max_size 10M | |
| pm2 set pm2-logrotate:retain 10 | |
| pm2 set pm2-logrotate:compress true | |
| pm2 set pm2-logrotate:rotateInterval '0 0 * * *' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment