ClickHouse/tests/config/users.d
Vasily Nemkov c902afddde Added system.session_log table
Which logs all the info about LogIn, LogOut and LogIn Failure events.
Additional info that is logged:
- User name
- event type (LogIn, LogOut, LoginFailure)
- Event date\time\time with microseconds
- authentication type (same as for IDENTIFIED BY of CREATE USER statement)
- array of active settings profiles upon login
- array of active roles upon login
- array of changed settings with corresponding values
- client address and port
- interface (TCP\HTTP\MySQL\PostgreSQL, etc.)
- client info (name, version info)
- optional LoginFailure reason text message.

Added some tests to verify that events are properly saved with all necessary info via following interfaces:
- TCP
- HTTP
- MySQL

Known limitations
- Not tested against named HTTP sessions, PostgreSQL and gRPC, hence those are not guaranteed to work 100% properly.
2021-08-30 18:28:28 +03:00
..
access_management.xml
database_atomic_drop_detach_sync.xml
database_ordinary.xml
database_replicated.xml improve replicated database tests 2021-06-15 23:52:29 +03:00
log_queries.xml
opentelemetry.xml Enable OpenTelemetry tracing in functional tests 2020-11-19 18:58:33 +03:00
readonly.xml
remote_queries.xml Tune idle_connection_timeout to avoid reconnects 2021-03-04 22:48:09 +03:00
session_log_test.xml Added system.session_log table 2021-08-30 18:28:28 +03:00
timeouts.xml fix config 2021-08-20 17:12:42 +03:00