pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLogging PostgreSQL output
4+ messages / 3 participants
[nested] [flat]
* Logging PostgreSQL output
@ 2004-07-17 15:25 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2004-07-17 16:12 ` Re: Logging PostgreSQL output Gaetano Mendola <mendola@bigfoot.com>
2004-07-17 16:20 ` Re: Logging PostgreSQL output Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 4+ messages in thread
From: Joost Kraaijeveld @ 2004-07-17 15:25 UTC (permalink / raw)
To: pgsql-admin
Hi all,
I want to log all PostgreSQL's output in a seperate file. Is it possible to use the syslog system to do that or is the only way to use the stdout method? If it is possible to use the syslog system, how should I do this (I have tried several things but nothing I tried worked)?
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Logging PostgreSQL output
2004-07-17 15:25 Logging PostgreSQL output Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2004-07-17 16:12 ` Gaetano Mendola <mendola@bigfoot.com>
1 sibling, 0 replies; 4+ messages in thread
From: Gaetano Mendola @ 2004-07-17 16:12 UTC (permalink / raw)
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Joost Kraaijeveld wrote:
> Hi all,
>
> I want to log all PostgreSQL's output in a seperate file. Is it possible to use the syslog system to do that or is the only way to use the stdout method? If it is possible to use the syslog system, how should I do this (I have tried several things but nothing I tried worked)?
put these lines on your postgresql.conf
syslog = 2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'
after this you have to configure your syslogd:
add these lines on yout syslog.conf:
# Postgres
LOCAL0.* -/var/log/postgresql.log
not forget to add LOCAL0.none in your /var/log.messages log ad
ad that "-" char in front of your file location log
now you have to SIGHUP both postgres and syslogd.
Regards
Gaetano Mendola
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Logging PostgreSQL output
2004-07-17 15:25 Logging PostgreSQL output Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2004-07-17 16:20 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 4+ messages in thread
From: Tom Lane @ 2004-07-17 16:20 UTC (permalink / raw)
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-admin
"Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl> writes:
> I want to log all PostgreSQL's output in a seperate file. Is it
> possible to use the syslog system to do that or is the only way to use
> the stdout method? If it is possible to use the syslog system, how
> should I do this (I have tried several things but nothing I tried
> worked)?
You should be able to configure your syslog daemon to do that; read
its man page.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Logging PostgreSQL output
@ 2004-07-17 18:50 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
0 siblings, 0 replies; 4+ messages in thread
From: Joost Kraaijeveld @ 2004-07-17 18:50 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin
Hi Gaetano
Gaetano Mendola schreef:
> ad that "-" char in front of your file location log
This remark was what did it (all the other things allready were in place). Thanks. It is in the man pages but just as an ommission of file sync flag.
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-07-17 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-17 15:25 Logging PostgreSQL output Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2004-07-17 16:12 ` Gaetano Mendola <mendola@bigfoot.com>
2004-07-17 16:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-07-17 18:50 Re: Logging PostgreSQL output Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox