OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Heikki Korpela (hekosaitti.net)
Date: Mon Apr 02 2001 - 09:35:49 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Mon, 2 Apr 2001, Jason Hunt wrote:

    > I have the following in /etc/newsylog for messsages:
      logfilename (owner.group) mode ngen size time [ZBM] notify
    > /var/log/messages 644 24 * $MLDO Z

    > I assumed that this would cause /var/log/messages to be rotated on
    > last day of the month. Evidently not. I used the same format
    > of FreeBSD, and I couldn't find what ngen meant in man pages for
    > newssyslog.

    ngen 24 keeps 24 copies of the rotated files. Time should be a number of
    hours since the last time the log was trimmed, e.g. 744 for one month.

    In my newsyslog (from 2.8 stable or revision 1.34) struct conf_entry
    defines hours as an integer and parses hours as -1 if the entry in case
    is not a digit (is_digit(3)).

    <!-- ---------------------- 72 characters -------------------------- -->
                       Heikki Korpela -- hekosaitti.net