LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to get logrotate to only rotate files 2 days old. (https://www.linuxquestions.org/questions/linux-software-2/how-to-get-logrotate-to-only-rotate-files-2-days-old-446189/)

yoda_mon 05-18-2006 05:29 PM

How to get logrotate to only rotate files 2 days old.
 
I have a process that will can run at variable times and it generates log files. I would like to use logrotate to archive off old log files, but since the process runs at variable times I do not want logrotate to pull its log file from it. Is it possible for logrotate to only archive off files that are already 2 days old?

nilleso 05-18-2006 08:55 PM

you can accomplish all kinds of great stuff, including unique configs for specific files in /etc/logrotate.conf

I suggest you search for more info on this file.
cheers:)


All times are GMT -5. The time now is 10:18 AM.