From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: expanding on syslog help |
Date: | 2003-09-30 09:41:03 |
Message-ID: | 71770000.1064914863@lerlaptop.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Tuesday, September 30, 2003 13:44:04 +0800 Christopher Kings-Lynne
<chriskl(at)familyhealth(dot)com(dot)au> wrote:
> Hi Guys,
>
> I just spent the last half hour learning syslog and log rolling with
> postgres. Would there be objections to me expanding on the syslog
> sections in the docs?
>
> http://developer.postgresql.org/docs/postgres/logfile-maintenance.html
>
> I want to:
>
> * Add a link to the third paragraph there where it says to set syslog to
> 2 that goes to the syslog section of the SET parameters page.
>
> * Give an example of how to configure your syslog.conf to log to a
> separate postgres log. eg:
>
> "Depending on your system, to have syslog log PostgreSQL entries to a
> particular file, add something like this to the top of your
> /etc/syslog.conf:
>
># Log all 'postgres' events to /var/log/pgsql
> !postgres
> *.* /var/log/pgsql
># Nothing after this line applies to 'postgres'
> !-postgres
> "
a more standard (non-FreeBSD specific) answer is:
local0.* /var/log/postgres.log
(this also works on FreeBSD, btw).
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Seun Osewa | 2003-09-30 10:42:01 | Possible Commit Syntax Change for Improved TPS |
Previous Message | Larry Rosenman | 2003-09-30 09:37:50 | Re: expanding on syslog help |