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 1fhgyQ-000471-SM for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 19:58:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhgyO-0004eq-Jh for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 19:58:24 +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 1fhgyO-0004eh-8E for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 19:58:24 +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 1fhgyL-0005oE-P4 for pgsql-general@postgresql.org; Mon, 23 Jul 2018 19:58:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 16CC34D4; Mon, 23 Jul 2018 15:58:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 23 Jul 2018 15:58:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=ATYVi1fVtEKnlZtziYu7npHwJ/6Nt ELofP8gkAJv/JQ=; b=tFAFCZl2nynWxiAZdtTioK7xlEuuxMBDJ7nDLII72GyMA n7waj12ljyQ00CJZ7daxUc1jgyPDD/vr3xI7d7ydHEA78AJZcDHCb41oYca6b4tj Fx/id4TMtoejhO4TCGZf1USZMQ/2vWfT7I/zCWTEjowE7BXW7vRx1pOHJLVd4TFK uMXw4kSCopaUxQJMwblxM8ZrKzNn5/UrGGaHy2F1lZKWw1YskaxhSIn+2SBe4tRP 02q4JSx9dVammSPYyDv8gZ9FWEIW5WISBxfxfuzxP4qijdQnf0MNbkzwr9c1foj3 VXHbtdO/vyQe330HWSl0aZ60pbqUXlcW/exr2AhLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=ATYVi1 fVtEKnlZtziYu7npHwJ/6NtELofP8gkAJv/JQ=; b=R9OBKZfQfPPdWhN6KihYLX urZohCQ1zN9exRhpYDy/lhRuni+Ej+EyK3Gxq7bhLLLuVvmgLz9EoLYuNF4ZLyB4 yIRgqwVT/iIGnq5QE91ydNkm6di5cD1eqGkHaEInChJkIXP1H3zocOjSzb2fAYL9 y5DKM2YCXiUwwKHFG+0zcndBW3ykSosRy0FK6MunaaPRWf95nWPBh1g9BS8wI/Bl IcE0KFl6t7hyiLnr8p9OClm9AFRzrA081tQ4HV9Xikwn7HyJqS66aD9jrig6LfSx 9qIkG7Zz46Ko3E2pkRz1fd4BXoFwg30Y3TFrX0kYF1juRw1FRzhfjRutSgU8O6kQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.181]) by mail.messagingengine.com (Postfix) with ESMTPA id 0035F10255; Mon, 23 Jul 2018 15:58:18 -0400 (EDT) Subject: Re: Connections on cluster not being logged To: Sandy Becker References: <761f3607-88d4-5d1d-0c98-967109ecf5bb@aklaver.com> Cc: pgsql-general From: Adrian Klaver Message-ID: <06eeef2e-48ba-c4d0-efd7-f71a656d6764@aklaver.com> Date: Mon, 23 Jul 2018 12:58:17 -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 12:50 PM, Sandy Becker wrote: Please reply to list also. Ccing list. > Two servers set up in a hardware cluster for automatic failover.  That's > all I know about it. Alright, so which server's logs are you looking at? Long term it would be a good thing to know how the cluster/failover is setup, as that is something folks on this list are going to ask when attempting to answer a question. Just trying to get ahead of the inevitable:) > > On Mon, Jul 23, 2018 at 1:04 PM, Adrian Klaver > > wrote: > > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com