pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Logging to Syslog on RedHat 7.1
2+ messages / 2 participants
[nested] [flat]

* Logging to Syslog on RedHat 7.1
@ 2001-11-09 12:52  Eric Sawler <erics_no_spam@novex.ns.ca>
  0 siblings, 1 reply; 2+ messages in thread

From: Eric Sawler @ 2001-11-09 12:52 UTC (permalink / raw)
  To: pgsql-admin

Since my earlier posts on this, I have gotten several requests for the steps
involved.
As there does not seem to be a clear explanation in the docs, I decided to
post this. Perhaps the experts can improve upon this and add it to the FAQ?

Step1: In /var/lib/pgdata/postgresql.conf, I set the following:
#
#       Debug display
#
silent_mode = false

log_connections = true
log_timestamp = true
log_pid = true

debug_level = 1 # range 0-16


#
#       Syslog
#
#ifdef ENABLE_SYSLOG
syslog = 1 # range 0-2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'
#endif

Step 2:  In /etc/syslog.conf, I added:
# postgres
local0.*                                                /var/log/pgsql

Step 3: Restart postmaster and syslogd: (or reboot)
/etc/init.d/syslog restart
/etc/init.d/postgresql restart

That should do it!









^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Logging to Syslog on RedHat 7.1
@ 2001-11-09 16:44  Lamar Owen <lamar.owen@wgcr.org>
  parent: Eric Sawler <erics_no_spam@novex.ns.ca>
  0 siblings, 0 replies; 2+ messages in thread

From: Lamar Owen @ 2001-11-09 16:44 UTC (permalink / raw)
  To: Eric Sawler <erics_no_spam@novex.ns.ca>; pgsql-admin

On Friday 09 November 2001 07:52 am, Eric Sawler wrote:
> Since my earlier posts on this, I have gotten several requests for the
> steps involved.
> As there does not seem to be a clear explanation in the docs, I decided to
> post this. Perhaps the experts can improve upon this and add it to the FAQ?

I'll add to the RPM README.rpm-dist.
-- 
Lamar Owen
WGCR Internet Radio
1 Peter 4:11



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-11-09 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09 12:52 Logging to Syslog on RedHat 7.1 Eric Sawler <erics_no_spam@novex.ns.ca>
2001-11-09 16:44 ` Lamar Owen <lamar.owen@wgcr.org>

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