Rotating Log Files

    Date19 Jun 2001
    4330
    Posted ByAnthony Pell
    Log files grow. That's what they're there for, after all. As a systems administrator, you need to be able to control log growth. FreeBSD provides a basic log file handler, newsyslog. The newsyslog program handles standard log file rotation. The oldest . . . Log files grow. That's what they're there for, after all. As a systems administrator, you need to be able to control log growth. FreeBSD provides a basic log file handler, newsyslog. The newsyslog program handles standard log file rotation. The oldest logs are deleted. Each old log is renamed. Finally, the current log is moved and a new log file is created. The newsyslog program can also compress files, restart daemons, and in general handle all the routine tasks of shuffling files.

    The cron daemon fires up newsyslog once an hour. It scans the /etc/newsyslog.conf file, and checks each log file listed there. If the conditions listed for rotating the logfile are met, the log is rotated.

    You are not authorised to post comments.

    Comments powered by CComment

    LinuxSecurity Poll

    Do you read our distribution advisories on a regular basis?

    No answer selected. Please try again.
    Please select either existing option or enter your own, however not both.
    Please select minimum 0 answer(s) and maximum 3 answer(s).
    /component/communitypolls/?task=poll.vote&format=json
    23
    radio
    [{"id":"84","title":"Yes, for a single distribution","votes":"0","type":"x","order":"1","pct":0,"resources":[]},{"id":"85","title":"Yes, for multiple distributions","votes":"5","type":"x","order":"2","pct":71.43,"resources":[]},{"id":"86","title":"No","votes":"2","type":"x","order":"3","pct":28.57,"resources":[]}]["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"]["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"]350
    bottom200

    Advisories

    We use cookies to provide and improve our services. By using our site, you consent to our Cookie Policy.