Re: Send all postgres messages to a specific folder

Поиск
Список
Период
Сортировка
От Neal Clark
Тема Re: Send all postgres messages to a specific folder
Дата
Msg-id C92DA960-998F-4E4A-A9AD-8170509FD2B7@securescience.net
обсуждение исходный текст
Ответ на Send all postgres messages to a specific folder  ("Leticia Larrosa" <leticia@tesla.cujae.edu.cu>)
Список pgsql-novice
I'm not sure how it looks on your system, but on mine (FreeBSD 6.1, PG 8.1 from ports), the default in postgresql.conf is to send everything to a number of syslog facilities with the ident 'postgres'.

Anyway, I haven't messed with any of these settings, and I get everything in messages, but you should be able to do this by adding a line like this to syslog.conf:

postgres.* /var/log/postgresql

I think that will send everything from postgre to that one file. As for splitting it up into multiple files, you'd have to  do stuff like

postgres.error /var/log/postgresql/errors
postgres.fatal /var/log/postgresql/fatal
postgres.notice ... etc.

hope that helps,
Neal

On Jan 18, 2007, at 1:47 PM, Leticia Larrosa wrote:

Hi

In my ubuntu server I have two places where are logged the messages from postgreSql. Some kind of messages are logged in /var/log/postgresql/postgresql-8.1-main.log and others messages are loggued in "/var/log/messages".

I want send all my messages to an specific folder (/var/log/postgresql/) and none of them to "/var/log/messages"

How can I do that?

Thanks in advanced.
</L>

 



Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Leticia Larrosa"
Дата:
Сообщение: Send all postgres messages to a specific folder
Следующее
От: John DeSoi
Дата:
Сообщение: Re: Select Into help