You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having tried the compression option, we have had to disable it and implement separate gzipping logic.
Our log files are continuously written to, which meant the gzipped file was continuously written to as pm2-logrotate compression is implemented using pipes.
The current implementation seems broken, since when log files were renamed the resulting gzip files were truncated mid-gzip-stream. gunzipping them resulted in errors, and log files with truncated final lines.
A better implementation could be to write uncompressed logs, and gzip completed log files after their rotation.
The text was updated successfully, but these errors were encountered:
Having tried the compression option, we have had to disable it and implement separate gzipping logic.
Our log files are continuously written to, which meant the gzipped file was continuously written to as pm2-logrotate compression is implemented using pipes.
The current implementation seems broken, since when log files were renamed the resulting gzip files were truncated mid-gzip-stream. gunzipping them resulted in errors, and log files with truncated final lines.
A better implementation could be to write uncompressed logs, and gzip completed log files after their rotation.
The text was updated successfully, but these errors were encountered: