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 1iWzqw-000860-Db for pgsql-general@arkaria.postgresql.org; Tue, 19 Nov 2019 09:31:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iWzqu-0006p1-LY for pgsql-general@arkaria.postgresql.org; Tue, 19 Nov 2019 09:31:16 +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 1iWzqu-0006ot-Bi for pgsql-general@lists.postgresql.org; Tue, 19 Nov 2019 09:31:16 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWzqr-00017m-NO for pgsql-general@lists.postgresql.org; Tue, 19 Nov 2019 09:31:15 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8) with ESMTPS id xAJ9V6iD009088 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Nov 2019 11:31:11 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id xAJ9V6UF000284 for ; Tue, 19 Nov 2019 11:31:06 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: pgaudit log directory To: pgsql-general@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: <36aad771-a10a-785d-c681-db345c14a773@matrix.gatewaynet.com> Date: Tue, 19 Nov 2019 11:31:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.101.4 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.9 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,TW_PG autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 18/11/19 9:56 μ.μ., Dave Hughes wrote: > Hello, > I'm using PostgreSQL 10.5 on Linux (RHEL).  I'm new to administering PostgreSQL and recently installed pgaudit.  I believe I have it installed correctly and wanted to start playing with it to see > how exactly it works. > > So while walking through a tutorial I found online, I saw where I can enter a statement in PostgreSQL, such as: > ALTER SYSTEM SET pgaudit.log TO 'read, write'; > SELECT pg_reload_conf(); > Then after reading or writing to a table, you can then check "pg_log" for the audit entries.  But my issue is that I can't find the log file at all? > > In my main PostgreSQL directory (/work/PostgreSQL/10)I do have a file called "logfile", but there are no entries from today.  When I go into the pgaudit sub-directory (/work/PostegreSQL/10/pgaudit) > I don't see any log file in there either? pgaudit writes in the standard pgsql log. > > Can someone point me in the right direction? > > Thanks, > Dave Hughes -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt