Re: Multilog failing to rotate logfiles

Charles Cazabon <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Robert Fisher <[email protected]> wrote:
> Charles,
> 
> Thanks for replying,

You're welcome.  By the way, would you mind not top-posting, and trimming old
material?  Your current posting style makes your replies very difficult to
read.

> but I think I might have this licked.  I was running a logwatch script that
> was collating my dates but then was piping the log back into itself in a
> loop I think.

I'm not sure what you mean by this.  You wouldn't be able to get a second
process feeding data to the same multilog process.

> I removed the code, and will see what happens tonight and will respond in
> the morning.  But still doesn't explain why the logs did not rotate out
> cause they were well above 10MB.

No, it doesn't.  I don't know why this didn't seem to work -- I've never seen
multilog fail to rotate logs like this.  I'm sure it's not multilog; it's got
to be something to do with your setup, but I don't know what.

> Will the logs not rotate if the limit is not within 2KB of the max?

Not quite.  multilog will rotate the current log file out at the first of
either (a) the first newline character after the log reaches (N - 2000) bytes,
or (b) the log reaches N bytes.

> qmaill   24982  0.0  0.0  1360  268 ?        S    21:32   0:00 
> /usr/local/bin/multilog t s10000000 /var/log/qmail

And this shows your "s" argument should have been in effect.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                              <[email protected]>
GPL'ed software available at:     http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.