B
B
bhavenger2013-08-16 09:24:26
PostgreSQL
bhavenger, 2013-08-16 09:24:26

Proxy server with logging of user requests

It is necessary to make sure that all user requests to multiple databases go through one proxy server and are logged somewhere (well, except for SELECT queries).
pgbouncer can't do that, pg_pool can't do that either.
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
cat_crash, 2013-08-16
@cat_crash

Log to CSV files (http://www.postgresql.org/docs/9.1/static/runtime-config-logging.html). Postgres itself can save from CSV to tables. Allocate a separate LOG server (Postgres) where all logs will be collected.
Profit

B
bhavenger, 2013-08-20
@bhavenger

Perhaps it will help someone to save man
-hours: The only proxy server with support for request logging turned out to be tsung-recorder. And even he is not suitable for such a task due to the fact that he writes logs exclusively in xml format without time stamps and without information about the user.
The problem itself could not be solved.

N
Nikolai Turnaviotov, 2013-08-23
@foxmuldercp

Um, how about integrating logging into the client application for the employee?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question