pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Separate log_destination, user specific
Date: Tue, 25 Jan 2022 11:55:55 +0100
Message-ID: <8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com> (raw)
In-Reply-To: <CALfOM6KLFk_YVv5Css6sT3nr9F3spd+VNzTS6C9jREJtQ=SGFA@mail.gmail.com>
References: <CALfOM6KLFk_YVv5Css6sT3nr9F3spd+VNzTS6C9jREJtQ=SGFA@mail.gmail.com>

Am 25.01.22 um 11:48 schrieb Daulat:
> Hello Team,
>
> 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 ?
>
> Please suggest !
>
> Thanks,
>
There is no setting for this, but of course you can set up a process 
which is always watching the log and copying messages by user (or other 
criteria) to other files.

Make sure that in case of log rotation your process switches to the new 
current log file.


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012



Attachments:

  OpenPGP_signature (application/pgp-signature, 202B) download

view thread (5+ messages)  latest in thread

Message-ID: <8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com>
Permalink:  ../8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com/
Also on:    postgresql.org/message-id/8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com

 · 

reply

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: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Separate log_destination, user specific
  In-Reply-To: <8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.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