Re: Log files, how to rotate properly

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Dave Cramer <Dave(at)micro-automation(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Log files, how to rotate properly
Date: 2001-06-14 00:39:51
Message-ID: sipuc7yjvs.fsf@daffy.airs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> writes:

> On Wednesday 13 June 2001 16:39, Peter Eisentraut wrote:
> > Lamar Owen writes:
> > > Use syslog. Syslog has many advantages:
> > Disadvantage:
>
> > Some messages will get lost.
>
> I have yet to see a 'lost' syslog message here, in over three years.
>
> Which is worse, though:
> 1.) An occasional lost log message;
> 2.) Downtime due to pulling down the entire server to rotate a log.
>
> If syslog looses messages, let's try helping fix syslog rather than
> recommending Yet Another Log Rotating Solution.

The implementation of syslog--routing messages through a named pipe
with a limited amount of buffer space--makes it inevitable that
messages will be lost under heavy load. Sometimes heavy load is when
you most need the messages.

Also, under heavy load, syslog can fill up your disk.

DJB's multilog program is a reliable alternative:
http://cr.yp.to/daemontools.html

Ian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Cramer 2001-06-14 01:05:06 Re: Log files, how to rotate properly
Previous Message Tom Lane 2001-06-14 00:35:48 Re: problem connecting from another host