LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automating Log Deletion process? (https://www.linuxquestions.org/questions/linux-newbie-8/automating-log-deletion-process-791408/)

your_shadow03 02-25-2010 12:17 AM

Automating Log Deletion process?
 
I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.

mesiol 02-25-2010 12:21 AM

Hye

configure logrotate this will solve your problem. It allows various parameters to handle how logfiles will be backuped and when they will be deleted.

Take a look at /etc/logrotate.conf and /etc/logrotate.d.


All times are GMT -5. The time now is 02:45 PM.