pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pavan95 <pavan.postgresdba@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Is there a way to log only a particular user connection attempts in Postgres?
Date: Thu, 21 Mar 2019 21:24:12 -0700 (MST)
Message-ID: <1553228652335-0.post@n3.nabble.com> (raw)

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




view thread (6+ messages)  latest in thread

Message-ID: <1553228652335-0.post@n3.nabble.com>
Permalink:  ../1553228652335-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1553228652335-0.post@n3.nabble.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: pavan.postgresdba@gmail.com
  Subject: Re: Is there a way to log only a particular user connection attempts in Postgres?
  In-Reply-To: <1553228652335-0.post@n3.nabble.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