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 1fhg8G-0001Vn-Ie for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 19:04:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhg8F-000487-38 for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 19:04:31 +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 1fhg8D-00047z-N3 for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 19:04:30 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhg8A-0003Rg-Au for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 19:04:28 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id E1689520; Mon, 23 Jul 2018 15:04:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 23 Jul 2018 15:04:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=2H6ZHlfR/rBY6yHizGnmuNGueLDut 5OkiiOBHH27l8Y=; b=EAbhbSy4HYQiDxANqd/FroP+QeBUXLv9Lc8GCPMV57gdB zSoT3IhbAnyP/NqI0JLrVk1g+oOo5oS+WrHDbIfJqNQcCDXpuHbNAFKWnxoGY4e9 CPQD6E/2CB2iiM5WmqjJfbEaWxgqv6J1JCoLqpuotW5KuwXP9ww4duRh4QiSrGLt Js6SRPoNK9j9HjgqbyZoP34Ta2YmgbDNlEEkurS6fN4z4XzhSJCtekd7qxRtz2WS 0yiBNvobBIf/4CxpX5Zw0xCH510aWTNfSGcrGQM0eP7iFzZEn83XRM1/XJG/ldZK 5rjxEAZbq2srL/hY/9WO4nOEUcZu5DyLGXhW9wvJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2H6ZHl fR/rBY6yHizGnmuNGueLDut5OkiiOBHH27l8Y=; b=MzQ5k2nzvDFsOfbE6VyVB6 FV4UnkrjJ5V5HMsIePwo59hvBub4hRs/46EZB8pybjZAzqdwXiRJB8TE+WyDQKki 7P85fEDuVZS+ksVuhdey43T4qFR9HFN+VAs7HbCVBbbVVcio2Y0kEqyWqqPX4Mrv jTuWrOaJ6TWOcbUl3wE8qrR5Fu2+kbe8Ifr2uONgOd5u7En7q7T1ksfBkTEVMHt3 L2F02OMR2rLoGuL0drHAn6qykbyLgbGi7viCPULlwdLFql0DBfW9y/8+GrW0+dIw V6EwFN+963Cxc52he32WCjv7/qGG5QvJpPAoLy5EORQuOeJy/2on9uOPJQZ1SyOg == X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 824361025C; Mon, 23 Jul 2018 15:04:23 -0400 (EDT) Subject: Re: Connections on cluster not being logged To: Sandy Becker , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <761f3607-88d4-5d1d-0c98-967109ecf5bb@aklaver.com> Date: Mon, 23 Jul 2018 12:04:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/23/2018 08:14 AM, Sandy Becker wrote: > 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]' > > Unfortunately, it doesn't seem to be logging the connections.  This is > what I have used on our non-clustered instances and it's working as > expected.  Have I missed something relating to logging on a cluster? > The second node is strictly for automatice failover, so nothing is > actually running there at the moment. Can you define what you mean by a cluster? > > Thank you in advance for any suggestions. > > Sandy -- Adrian Klaver adrian.klaver@aklaver.com