LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to achieve syslog rotation in red hat linux? (https://www.linuxquestions.org/questions/red-hat-31/how-to-achieve-syslog-rotation-in-red-hat-linux-858518/)

shekhar_puttur 01-25-2011 06:55 AM

How to achieve syslog rotation in red hat linux?
 
Hi All,

I have configured /etc/syslog.conf for writing user level log messages, and it is working fine.


The line which i entered is:
user.* /home/shekhar/obj/myjob.log

But the log file keeps increasing. I would like to rotate the log file when it reaches 100Kb.

How do i do that in red hat linux ?

Looking forward for the kind response.

Thanks

AlucardZero 01-25-2011 08:12 AM

"man logrotate"

See /etc/logrotate.conf or /etc/logrotate.d/*


All times are GMT -5. The time now is 05:26 AM.