Is there a way to log only a particular user connection attempts inPostgres? - Mailing list pgsql-admin

From pavan95
Subject Is there a way to log only a particular user connection attempts inPostgres?
Date
Msg-id 1553228652335-0.post@n3.nabble.com
Whole thread Raw
Responses Re: Is there a way to log only a particular user connection attemptsin Postgres?  (Ron <ronljohnsonjr@gmail.com>)
Re: Is there a way to log only a particular user connection attemptsin Postgres?  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Re: Is there a way to log only a particular user connection attemptsin Postgres?  (Shreeyansh Dba <shreeyansh2014@gmail.com>)
List pgsql-admin
Hi Community,

Is there any way to log a user login/connection attempts in a log file ?

I  know that we have log_connections parameter for this. But it logs all the
connection attempts for all users across the instance.

But here my requirement is to exclude login attempts for a particular
user(as in my case its application user and postgres  user).

I have also seen "pg_audit" but it is not logging any login events.

Please shed some light on this scenario.

Looking forward to hear from you.

Regards,
Pavan Teja,
9841380956



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html


pgsql-admin by date:

Previous
From: M Jane
Date:
Subject: Re: Running postgresql databases in Docker
Next
From: Ron
Date:
Subject: Re: Is there a way to log only a particular user connection attemptsin Postgres?