Re: Separate log_destination, user specific

From: Paul Smith <paul(at)pscs(dot)co(dot)uk>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Separate log_destination, user specific
Date: 2022-01-25 10:57:48
Message-ID: 066fa9a8-9e51-dd4d-83e6-4efcc8e36f53@pscs.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 25/01/2022 10:48, Daulat wrote:
> Is it possible to set a separate log_destination for some users  in
> Postgres?
> As I know all actions are recorded under the directory specified
> by log_destination.
>
> But I want to create a separate log file for DBA users to log their
> actions.
> Is any third party or free ware tool available to accomplish this task ?

Could you set PostgreSQL to log to Syslog, and then set up filters in
rsyslog?
(I've not done it, but it sounds like it may work)

--
Paul
Paul Smith Computer Services
support(at)pscs(dot)co(dot)uk - 01484 855800

--

Paul Smith Computer Services
Tel: 01484 855800
Vat No: GB 685 6987 53

Sign up for news & updates at http://www.pscs.co.uk/go/subscribe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Holger Jakobs 2022-01-25 11:00:44 Re: Separate log_destination, user specific
Previous Message Holger Jakobs 2022-01-25 10:55:55 Re: Separate log_destination, user specific