Skip site navigation (1) Skip section navigation (2)

Re: Log file permissions?

From: "Douglas McNaught" <doug(at)mcnaught(dot)org>
To: "Glyn Astill" <glynastill(at)yahoo(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Log file permissions?
Date: 2008-01-31 14:53:18
Message-ID: 5ded07e00801310653t2eb15498w37b0acb19a2e3cf@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
On 1/31/08, Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> wrote:
> I've noticed that by default postgres writes its log files read/write
> only by the postgres user.
>
> I have a nagios user I want to be able to analyse the logs.
>
> Is there a way to make postgres output them so they can be read by a
> group? Or am I going to have to write a script?

PG itself only writes to stdout/stderr or uses syslog().  The way logs
are generated and stored is distro-specific, so you need to look at
how your distro does things (perhaps modifying the startup script).

-Doug

In response to

Responses

pgsql-general by date

Next:From: Alvaro HerreraDate: 2008-01-31 15:00:20
Subject: Re: Log file permissions?
Previous:From: Magnus HaganderDate: 2008-01-31 14:43:14
Subject: Re: [GENERAL] Backup

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group