Works great. thanks
Tony Heal
Pace Systems Group, Inc.
800-624-5999
theal@pace2020.com
> -----Original Message----- > From: Douglas Allan Tutty [mailto:dtutty@porchlight.ca] > Sent: Wednesday, August 01, 2007 1:07 PM > To: debian-user@lists.debian.org > Subject: Re: syslog help > > On Wed, Aug 01, 2007 at 12:54:23PM -0400, Tony Heal wrote: > > I am trying to move my postgresql (v7.4) logging out of the syslog and > > into a postgres.log. I want to do this so I can turn on logging full > > bore and have logrotate keep the logs to a reasonable size. > > > > > > > > Here is my problem. Postgresql v7.4 will either log to STDOUT, syslog > > or none. I have been looking at syslog.conf and trying to set this up > > and I have what looks good, but I still get the entries in the syslog. > > Here is what I have for syslog.conf > > > > Local0.* /var/log/postgresql/postgres.log > > > > I also tries this with cron and that did not work either. Is this even > > possible? Can I redirect entries out of the syslog into another file, > > or does this facility only copy the entries to another file, while > > maintaining them in the syslog. > > My /etc/syslog.conf has the following line: > > *.*;auth,authpriv.none -/var/log/syslog > > The *.* means that _everything_ logged to the syslogger goes into > /var/log/syslog. > > man syslog.conf tells us that with one line where terms are separated by > ';', latter terms override earlier terms. Assuming that your Local0.* > gives you the log you want, you should be able to append ';Local0.none' > to the *.* line to exclude them from /var/log/syslog. > > Doug. > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Aug 1 13:38:13 2007
This archive was generated by hypermail 2.1.8
: Thu Aug 09 2007 - 18:37:52 EDT
|