Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Bj8-00060R-TM for pgsql-admin@arkaria.postgresql.org; Fri, 22 Mar 2019 04:24:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7Bj7-0004zI-LS for pgsql-admin@arkaria.postgresql.org; Fri, 22 Mar 2019 04:24:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Bj7-0004wW-CD for pgsql-admin@lists.postgresql.org; Fri, 22 Mar 2019 04:24:17 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7Bj4-0001dW-Gf for pgsql-admin@postgresql.org; Fri, 22 Mar 2019 04:24:16 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 61EB212BF6510 for ; Thu, 21 Mar 2019 21:24:12 -0700 (MST) Date: Thu, 21 Mar 2019 21:24:12 -0700 (MST) From: pavan95 To: pgsql-admin@postgresql.org Message-ID: <1553228652335-0.post@n3.nabble.com> Subject: Is there a way to log only a particular user connection attempts in Postgres? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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