Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhcgd-0007zo-Fl for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 15:23:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhcgc-0008UE-1p for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 15:23:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhcgb-0008U5-N0 for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 15:23:45 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhcgY-0006oq-Gl for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 15:23:44 +0000 Received: from [192.168.178.20] (unknown [185.38.49.16]) by mail.i-mark.de (Postfix) with ESMTPSA id CBC1B158030D for ; Mon, 23 Jul 2018 17:23:35 +0200 (CEST) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 185.38.49.16) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.178.20] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: Connections on cluster not being logged To: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer Message-ID: <9517c858-91b6-6818-2e66-e15e2c12683b@a-kretschmer.de> Date: Mon, 23 Jul 2018 17:23:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 23.07.2018 um 17:14 schrieb Sandy Becker: > I have postgresql 9.4 on a cluster, hardware based.  I need to be able > to see which users are connecting to which database and when to be in > compliance with our security policies. > > I have set the following in the postgresql.conf and did a pg_ctl reload: > >      log_connections = on >      log_line_prefix = '%t [%p]:[%u]:[%h]-[%d] [%1-1]' should work, can you check if those settings are in effect? select name, setting from pg_settings where name in ('log_connections','log_line_prefix'); Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com