pm2-logrotate
pm2-logrotate copied to clipboard
Logs are repeated after archived
I have a 6 node process, they all use the same pm2 log config, streaming there log to the same file.
They are in cluster mode, but they were started separately.
Howerver, after pm2-logrotate archived these logs, every line repeats itself 6 times.
Logs for pm2-logrotate shows every archive has been created 6 times.
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
6|pm2-logr | "****err__2018-01-29-02-11.log" has been created
Therefore every time I tried to grep archived logs, everything repeats 6 times.
pm2-logrotate version 1.3.1 pm2 version 2.4.6
same here. Have you solved this problem yet?