From: Jeff Larsen <jlar310@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Enable Syslog on Postgres
Date: Thu, 29 Nov 2007 08:46:40 -0600
Message-ID: <d1f9b6f00711290646v780aea4am725928566c90fff5@mail.gmail.com> (raw)
In-Reply-To: <6ADFAE1B098BCB45AAEF0147A830DD2A50AB4E@301081ANEX2.global.avaya.com>
References: <6ADFAE1B098BCB45AAEF0147A830DD2A50AB4E@301081ANEX2.global.avaya.com>
> I have installed Postgres 8.2.5 on windows xp machine using the windows
> installer. I am trying to enable syslogs on Postgres so that all Postgress
> logs should be forwarded Syslog server. I have installed Syslog server
> WinSyslog on the same machine.
>
> I have modified 'log_destination' parameter value in postgresql.conf to
> 'syslog'. However, the database server fails to start and print following
> error message:
>
> FATAL: invalid value for parameter "log_destination": "syslog"
Well, the PG docs don't exactly say that syslog is not supported on
Windows, but since syslog is not native to windows, I would guess that
it is not supported in that situation. However, PG does support
'eventlog' on windows systems. Someone please correct me if my
assumptions are wrong.
> Also, I want to know how can I forward logs to a syslog server installed on
> a machine different from database server's machine.
Local services do not typically send syslog messages directly to
remote syslogs, but, if you are on Linux/Unix you can configure the
local syslog daemon to forward certain things to another syslog
server.
For your situation, perhaps send PG logs to eventlog, then look for
Windows software to forward eventlog to a remote syslog. I know
something like that exists, but I've never actually used it.
Better yet, if your XP box has the resources, install the free VMware
Server and run PG in a Linux virtual machine.
Jeff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jlar310@gmail.com
Subject: Re: Enable Syslog on Postgres
In-Reply-To: <d1f9b6f00711290646v780aea4am725928566c90fff5@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox