[plug] Rotating logs on a Workstation...

Cameron Patrick cameron at patrick.wattle.id.au
Thu Oct 2 13:09:52 WST 2003


On Thu, Oct 02, 2003 at 12:32:25PM +0800, Trevor Phillips wrote:

| On this trouble workstation, weekly is instead:
|    mail.log mail.err mail.info mail.warn uucp.log
| Many missing, including noisy ones like "messages".

Looking at the source for syslogd-listfiles, if the file has been
rotated in the last N hours where N=5 (at least that's what a comment
in the script says! :-P) then it won't be listed in the output.  Perhaps
your /var/log/messages has just been rotated after you installed anacron
and now it's not being listed?  Also, if your /v/l/m really is 40mb like
you said is was, it looks as though it should be listed in the --daily
output.

The code I'm gleaning this from, BTW, says:

        $everything = ($pat =~ /\*\.\*/);
        $output{$file} = 1 if (($everything && $opt_daily)
                               || (!$everything && !$opt_daily && !rotated ($file))
                               || (!$opt_ign_size && ((stat $file)[7] >= $opt_large) && $opt_dai
ly)
                               );


Cameron.

_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list