I have a twisted server that generates log files and rotates them depending on size. If the file size of a specific file exceeds 1 MB, a new log file is created.
However, after several days of operation, the log files begin to fill up my hard drive.
Is there a way to have a common limit for log rotation? The limit can be based on the total size (for example, only 200 GB logs — anything more will be deleted) or the number of files (for example, only 1000 logs will be saved).
source
share