| From: | "A B" <gentosaker(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Logging configuration with syslog-ng |
| Date: | 2008-11-19 09:41:07 |
| Message-ID: | dbbf25900811190141s37bf8ecqf0d1f4f974f325f4@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
I'd like to get my postgresql logging sent to the file
/var/log/postgresql.log, and have that file rotated to
postgresql.log.0.gz etc.
my postgresql.conf says
log_destination = 'stderr,syslog'
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'
but the messages goes into /var/log/messages.
Does anyone knowhow to configure syslog-ng to do what I want?
my syslog-ng.conf file looks like this:
source src {
unix-stream("/dev/log" max-connections(256));
internal();
file("/proc/kmsg");
};
destination messages { file("/var/log/messages"); };
log { source(src); destination(messages); };
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Phoenix Kiula | 2008-11-19 10:01:19 | How to list only my functions and their content? |
| Previous Message | Craig Ringer | 2008-11-19 09:40:04 | Re: Any risks in using FUNCTIONs (stored procedures) instead of raw sql queries? |