Обсуждение: Re: [NOVICE] Postgres Syslog

Поиск
Список
Период
Сортировка

Re: [NOVICE] Postgres Syslog

От
Steve Crawford
Дата:
That's a syslog issue, not a PostgreSQL issue. Read your syslog.conf man
pages. For many versions of syslog you use:
local3.*<tab>@host
instead of
local3.*<tab>/var/log/mylogfile

I just used local3 as an example - substitute the syslog facility name to
which you are routing your postgresql messages.

Remember that syslog expects tabs, not spaces between the facility/priority
and the destination (at least in all the syslogs I have used - check your man
pages).

Also be sure that the host is accepting remote syslog messages - most default
setups don't allow this. You will probably need to set a flag to allow remote
message logging.

Cheers,
Steve


On Friday 28 March 2003 8:26 am, Delao, Darryl W wrote:
> I am trying to setup the postgres.conf to send all postgres messages to a
> syslog server.  However, in the conf file there is no place to define the
> host.  I will be sending to an external host.  How do I tell the conf file
> to send syslogs to an outside host?
>
> Thank you,
> Darryl
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org