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

Logs are repeated after archived #93

Open
FrontMage opened this issue Jan 30, 2018 · 1 comment
Open

Logs are repeated after archived #93

FrontMage opened this issue Jan 30, 2018 · 1 comment

Comments

@FrontMage
Copy link

FrontMage commented Jan 30, 2018

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

@EllieSummer
Copy link

same here. Have you solved this problem yet?

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

2 participants