'How to keep logs of previous month and zip the logs the month before that using rotate logs?
I have a log file which is used by grafana for graphing and searching logs by me. Now using daily rotate I can rotate log files and zip but I want to keep the logs of previous month. For eg. If now its March, I need February logs present in the file but Jan logs to be zipped. As winston Daily rotate will create a new blank file which will make my work difficult to debug last month errors.
"winston": "version": "2.3.1" npm --version: 6.14.6
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
