Re: log rotation script for server output

From: Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: Flower Sun <sun_2002_flower(at)yahoo(dot)com>, Pgsql Group <pgsql-general(at)postgresql(dot)org>
Subject: Re: log rotation script for server output
Date: 2003-03-26 03:16:33
Message-ID: 3E811B91.4090109@intransa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I use logrotate-3.6.5-2.rpm on a red hat with the following config file

/var/log/pglog
{
rotate 2
size=1M
copytruncate
delaycompress
compress
}

Just to show how flexiable this logrotator is...

But the official word is that let syslog handle it....

Bruno Wolff III wrote:

>On Tue, Mar 25, 2003 at 12:32:53 -0800,
> Flower Sun <sun_2002_flower(at)yahoo(dot)com> wrote:
>
>
>>Hi, group,
>>
>>Does any one of you write log rotation script for postgresql server output? Can you share with us?
>>
>>shell> pg_ctl start -D /var/lib/pgsql/data -l /var/lib/pgsql/logfiles/activity.log -o -i
>>
>>
>
>You can pipe the output into multilog (from DJB's daemontools package).
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-03-26 04:40:24 Re: log rotation script for server output
Previous Message Joel Rees 2003-03-26 02:27:31 Re: fairly current mysql v postgresql comparison need for