Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id BD8F62E0070 for ; Fri, 30 May 2008 04:39:06 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59400-09 for ; Fri, 30 May 2008 04:38:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.harmless.hu (www.ssl.harmless.hu [195.56.55.205]) by developer.postgresql.org (Postfix) with ESMTP id 19DCA2E005E for ; Fri, 30 May 2008 04:38:59 -0300 (ADT) Received: from fw.publishing.hu ([82.131.181.62] helo=twoflower.in.publishing.hu) by marvin.harmless.hu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K1zCS-0000q3-7b; Fri, 30 May 2008 09:38:56 +0200 Date: Fri, 30 May 2008 09:38:51 +0200 From: CZUCZY Gergely To: kevin kempter Cc: pgsql-admin@postgresql.org Subject: Re: postgres, syslog and freeBSD Message-ID: <20080530093851.133c332e@twoflower.in.publishing.hu> In-Reply-To: <0AF6C4FA-FC04-4AC1-8603-7E5596301F62@kevinkempterllc.com> References: <0AF6C4FA-FC04-4AC1-8603-7E5596301F62@kevinkempterllc.com> Organization: Harmless Digital X-Mailer: Claws Mail 3.4.0 (GTK+ 2.10.11; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/y6pJjukmLNt2Blf6m_76Yqz"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.961 tagged_above=0 required=5 tests=URIBL_BLACK=1.961 X-Spam-Level: * X-Archive-Number: 200805/244 X-Sequence-Number: 29328 --Sig_/y6pJjukmLNt2Blf6m_76Yqz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 1) syslog.conf: !postgres *.* /var/log/postgresql.log 2) in your root shell: touch /var/log/postgresql.log 3) don't forget newsyslog.conf 4) don't forget man syslog.conf On Thu, 29 May 2008 22:35:19 -0600 kevin kempter wrote: > Hi list; >=20 > I'm trying to get postgres & syslog to get along with no luck. I'm =20 > running freeBSD7 and postgres 8.3.1 >=20 > Here's my postgres setup >=20 > log_destination =3D 'syslog' > #logging_collector =3D off > syslog_facility =3D 'LOCAL0' > syslog_ident =3D 'postgres' > silent_mode =3D on > log_min_duration_statement =3D 0 >=20 >=20 > Here's my /etc/syslog.conf file: >=20 >=20 > security.* /var/log/security > auth.info;authpriv.info /var/log/auth.log > mail.info /var/log/maillog > lpr.info /var/log/lpd-errs > ftp.info /var/log/xferlog > cron.* /var/log/cron > *.=3Ddebug /var/log/debug.log > *.emerg * > # uncomment this to log all writes to /dev/console to /var/log/=20 > console.log > #console.info /var/log/console.log > # uncomment this to enable logging of all log messages to /var/log/=20 > all.log > # touch /var/log/all.log and chmod it to mode 600 before it will work > #*.* /var/log/all.log > # uncomment this to enable logging to a remote loghost named loghost > #*.* @loghost > # uncomment these if you're running inn > # news.crit /var/log/news/news.crit > # news.err /var/log/news/news.err > # news.notice /var/log/news/news.notice > !startslip > *.* /var/log/slip.log > !ppp > *.* /var/log/ppp.log > LOCAL0.* /var/log/pgsql >=20 >=20 >=20 > I dont see any files show up in /var/log >=20 > what am I doing wrong? >=20 > Thanks in advance.. >=20 > /Kevin >=20 >=20 --=20 Sincerely, Gergely Czuczy Harmless Digital Bt mailto: gergely.czuczy@harmless.hu Tel: +36-30-9702963 --Sig_/y6pJjukmLNt2Blf6m_76Yqz Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFIP68NzrC0WyuMkpsRAmCeAJ46qAKcRXNNOwv5HnZOgOkacEQHPwCfUvG1 xedJbeW+QrNjyz9PipJuonA= =Z1uk -----END PGP SIGNATURE----- --Sig_/y6pJjukmLNt2Blf6m_76Yqz--