From: Vincent Veyron <vv.lists@wanadoo.fr>
To: Durumdara <durumdara@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Who altered the database?
Date: Sun, 11 Apr 2021 17:03:41 +0200
Message-ID: <20210411170341.8215c3ce4fd6e553c1fc73cf@wanadoo.fr> (raw)
In-Reply-To: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com>
References: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com>
On Fri, 9 Apr 2021 13:14:17 +0200
Durumdara <durumdara@gmail.com> wrote:
>
> What can we do to get info about the change (who did it, from what IP, when
> it happened) in the future?
>
> As I see we can't define precisely what we want to log... All or nothing.
>
Create a web interface to apply the changes and have the web server log the info in its own logs?
Apache has this directive :
https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#logformat
--
Bien à vous, Vincent Veyron
https://marica.fr/
Logiciel de suivi des contentieux juridiques, des sinistres d'assurance et des contrats
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: vv.lists@wanadoo.fr, durumdara@gmail.com
Subject: Re: Who altered the database?
In-Reply-To: <20210411170341.8215c3ce4fd6e553c1fc73cf@wanadoo.fr>
References: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com> <20210411170341.8215c3ce4fd6e553c1fc73cf@wanadoo.fr>
* 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