pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Is there a way to log only a particular user connection attempts in Postgres?
Date: Thu, 21 Mar 2019 23:55:13 -0500
Message-ID: <939ba014-7c51-339e-c63b-e9cb5be10897@gmail.com> (raw)
In-Reply-To: <1553228652335-0.post@n3.nabble.com>
References: <1553228652335-0.post@n3.nabble.com>

On 3/21/19 11:24 PM, pavan95 wrote:
> 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

A user that can't log in isn't much of a user.

> and postgres  user).

In a misguided, auditor-mandated attempt at security?

-- 
Angular momentum makes the world go 'round.




view thread (6+ messages)  latest in thread

Message-ID: <939ba014-7c51-339e-c63b-e9cb5be10897@gmail.com>
Permalink:  ../939ba014-7c51-339e-c63b-e9cb5be10897@gmail.com/
Also on:    postgresql.org/message-id/939ba014-7c51-339e-c63b-e9cb5be10897@gmail.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: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Is there a way to log only a particular user connection attempts in Postgres?
  In-Reply-To: <939ba014-7c51-339e-c63b-e9cb5be10897@gmail.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