pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Sawler <erics_no_spam@novex.ns.ca>
To: pgsql-admin@postgresql.org
Subject: Logging to Syslog on RedHat 7.1
Date: Fri, 9 Nov 2001 08:52:55 -0400
Message-ID: <9sgjj8$1tul$1@news.tht.net> (raw)

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!









view thread (2+ messages)  latest in thread

Message-ID: <9sgjj8$1tul$1@news.tht.net>
Permalink:  ../9sgjj8$1tul$1@news.tht.net/
Also on:    postgresql.org/message-id/9sgjj8$1tul$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: erics_no_spam@novex.ns.ca
  Subject: Re: Logging to Syslog on RedHat 7.1
  In-Reply-To: <9sgjj8$1tul$1@news.tht.net>
  References: <9sgjj8$1tul$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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