Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXrQm-0000Hy-OW for pgsql-general@arkaria.postgresql.org; Sun, 10 May 2020 19:16:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jXrQl-0002Cy-Jq for pgsql-general@arkaria.postgresql.org; Sun, 10 May 2020 19:16:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXrQj-0002Cd-Va for pgsql-general@lists.postgresql.org; Sun, 10 May 2020 19:16:07 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXrQe-0003J5-IN for pgsql-general@postgresql.org; Sun, 10 May 2020 19:16:05 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 83B5C47F; Sun, 10 May 2020 15:15:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 10 May 2020 15:15:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=A C5Sc8WH79tmj+xF78UshHMc1cEnjOBeMYqeflau9xU=; b=ZUJHrMugtGLBr3SI0 J2JSEPNFV4IwxJyEnqPQ3Jm+8KxbTd85nH1TEyE6+foNSY0cDFhfkBHVpYvzwnBT QEyv02BLuX4U+Q/QYDmLVakd3HiFAGSsfgJnh+BmrNpr0wZD06Jm3MN1IMjUBZxT lymirU1zVbFH3aDSH3HabD8Ei9uEogOWsSxxMLJJGveedyjh0vM4rGPU+nlj4+AM llDemkuuJIsaK2AK/A42H7KWIs7BuduniZAZ7oNN+xRvQz9r2OmykjpOJqa7TKPR +9RwTJNVvmUQFJgfYnUYAgK8M5k/VHt81xtS0eC26xZmUp7/Eqy9dJl0bxNgiikd UOgkQ== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=AC5Sc8WH79tmj+xF78UshHMc1cEnjOBeMYqeflau9 xU=; b=cY0MBdiJOJOByxjgLBGtbtQJDJM+oP8AcUcpI59VyJ1g72GSjglTq/k7s o22Ha46UrHPzDiCl7YIEvJiskJU3mEdRBYhDem4fVQiV3GuqcPOJ7zM/Vj840BJy h9WYKmtearFaDYNZ/NqqZKKUeMWn4UYe9/3wrffDqldC6rNlxac0Kik9+7eKFWyH fXrYExNaXbZd5dRM2cldSR+R06ycW9eIPytfz03/jyDXplPdGLhIb6wN8l/nThTM GKFC5dXc7VDvSl+Yyu0vHKXNLtjTCVRf1lv8ig5Xbiv22JVB2QVAgtwOtz7hryt/ Z0RX1TwMRTrJcf9Xnsj3b9KcU5H7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrkeekgddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevteejtdeikeetfefhhffhteelvdekffevudegjeeu kefhgfdvieeliedtkeevhfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A5F7328005A; Sun, 10 May 2020 15:15:55 -0400 (EDT) Subject: Re: what to log in csvlogs To: Mary Johnson , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Sun, 10 May 2020 12:15:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/10/20 11:27 AM, Mary Johnson wrote: > Hi, > > Can you please let me know if we can control what to log when log > destination is 'csvlog'? No, it is set to the fields described here: https://www.postgresql.org/docs/12/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-CSVLOG What is in those fields is determined by the settings mentioned in the link above. > Also, can we control when to log to display only select queries of a few > specific tables? Not with the built in logger. Other folks maybe able to point you at third party software that can do this. > > Thanks, > mary -- Adrian Klaver adrian.klaver@aklaver.com