We are using node module pm2 to run the server and capturing application logs.
But as the traffic is very huge, huge data is getting stored in single file which are around more than 100Gb.
Is there any possibility that we change the file every 1 hour or every 1Gb file without restarting server?
Currently we are manually doing this, restarting server and renaming the existing file which is creating issue.
You can use pm2-logrotate