From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgaudit log directory
Date: Tue, 19 Nov 2019 11:31:06 +0200
Message-ID: <36aad771-a10a-785d-c681-db345c14a773@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAFTBbFCb6bnYXq8VgBDA55=6g9tRrzKE44UMbDP9nQkEoDGVcA@mail.gmail.com>
References: <CAFTBbFCb6bnYXq8VgBDA55=6g9tRrzKE44UMbDP9nQkEoDGVcA@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: pgaudit log directory
In-Reply-To: <36aad771-a10a-785d-c681-db345c14a773@matrix.gatewaynet.com>
References: <CAFTBbFCb6bnYXq8VgBDA55=6g9tRrzKE44UMbDP9nQkEoDGVcA@mail.gmail.com> <36aad771-a10a-785d-c681-db345c14a773@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox