[plug] Rotating logs on a Workstation...

Trevor Phillips T.Phillips at murdoch.edu.au
Fri Oct 3 11:16:35 WST 2003


On Thursday 02 October 2003 13:09, Cameron Patrick wrote:
> 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.

Thanks. I looked at the code, and know perl well, but it was giving me a 
headache (or more to the point - making my headache work. ;_;). That makes 
sense, and I can see the logic now that I relook at the code...

Yes, it is showing up in the weekly list now, and I'll keep an eye to make 
sure it rotates for daily if it gets too large. As you say, anacron probably 
rotated it when I installed it, which is why it didn't show up in the lists 
for several hours after that.

I still have some space issues, since the .0 log isn't compressed, but things 
should sort themselves out now in time. Still, I may tweak that 10Mb large 
size down a bit - a workstation doesn't need THAT much logging, IMHO. ^_^

-- 
. Trevor Phillips             -           http://jurai.murdoch.edu.au/ . 
: Web Technical Administrator     -          T.Phillips at murdoch.edu.au : 
| IT Services                        -              Murdoch University | 
 >--------------------------------------------------------------------<
| On nights such as this, evil deeds are done. And good deeds, of     /
| course. But mostly evil, on the whole.                             /
 \      -- (Terry Pratchett, Wyrd Sisters)                          /

_______________________________________________
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