Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    1

    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

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Code:
    yum install logrotate
    man logrotate
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...