Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA9D7Qm86457 for ; Fri, 9 Nov 2001 08:07:26 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id fA9Cqv563448 for pgsql-admin@postgresql.org; Fri, 9 Nov 2001 07:52:57 -0500 (EST) (envelope-from news) From: "Eric Sawler" X-Newsgroups: comp.databases.postgresql.admin Subject: Logging to Syslog on RedHat 7.1 Date: Fri, 9 Nov 2001 08:52:55 -0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 42 Message-ID: <9sgjj8$1tul$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 To: pgsql-admin@postgresql.org X-Archive-Number: 200111/35 X-Sequence-Number: 2560 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!