syslog basic querry
alfred.hitch at gmail.com
Fri Dec 23 07:39:03 UTC 2005
yea exactly so there is apparently nothing new being added to the file
(after reap) and so it wont show me anything till it get reaped again
(or rather desc will be invalid ? )?
So, this should be observable on normal syslog also ? How can one get
past this ?
How do you guys see you logs ?
On 12/23/05, Rob Landley <rob at landley.net> wrote:
> On Thursday 22 December 2005 22:51, alfred hitch wrote:
> > Hi,
> > We have just started using busybox syslogd and tail etc ..
> > 2 Questions:
> > 1) How to change the reap size after which syslogd shifts messages
> > from /var/log/messages to messages.old ? and then removes altogether ?
> > any option possible for runtime to syslogd
> > 2) If I do a tail -f /var/log/messages and this file is "reap" ed in
> > background. I dont see any logs coming on screen, of course they are still
> > going to messages file. But, how to keep on getting these on screen also ..
> > some file handling desc. invalid issue ? any work arounds ?
> I don't personally use that so I dunno about #1, but with #2 it sounds like
> what's happening is when the file is reaped the old file gets (or deleted)
> and a new one gets created with new messages going to the new file.
> In contrast, tail -f opens the file once and monitors that filehandle. If you
> rename, it's look at the old file, not the new one. Filename is irrelevant
> after the open, it's a question of which inode the filehandle is associated
> > Regards,
> > Alfred
> Steve Ballmer: Innovation! Inigo Montoya: You keep using that word.
> I do not think it means what you think it means.
More information about the busybox