Re: Separate log_destination, user specific - Mailing list pgsql-admin

From Holger Jakobs
Subject Re: Separate log_destination, user specific
Date
Msg-id 8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com
Whole thread Raw
In response to Separate log_destination, user specific  (Daulat <daulat.dba@gmail.com>)
List pgsql-admin
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
Attachment

pgsql-admin by date:

Previous
From: Daulat
Date:
Subject: Separate log_destination, user specific
Next
From: Paul Smith
Date:
Subject: Re: Separate log_destination, user specific