I have this scenario.
We have a log archiving script which archives logs that are older than 8 days. We want to make sure that we don’t lose any logs until we’ve archived them.
I have set maxBackupIndex to 10 and maxFileSize to 10MB. If I get more transactions within 8 days, which take more than 100MB of logs, then there is a possibility that I might lose some logs.
How can I avoid this situation? Can I set maxBackupIndex to infinity?
Thanks in advance for any help on this issue.
You can also have a script to compress files older than a day if you have trouble retaining the logs.
maxFileSizeis anint. You can set it to 1000000000 or whatever would use too much disk space. Youc an also increase themaxFileSizeto 100MB or 1GB.