Enable Auditing
This article explains how to enable auditing for a database.
The auditing function in Exasol captures details for every session and every executed SQL statement. Auditing is enabled by default on a new database. For more information, see Auditing.
Prerequisites
The database must be stopped. For more information, see Stop a Database.
Procedure
The following examples use ConfD through the command-line tool confd_client, which is available on all database nodes.
-
Connect to the cluster operating system (COS) using
c4 connect -i PLAY_ID -s cos
.Example:
Copy./c4 connect -i c3275f84 -s cos
For more information about how to use
c4 connect
, see How to use c4. -
To find the database name when you are connected to COS, use the ConfD job db_list.
Example:
Copyconfd_client db_list
- MY_DATABASE -
To enable auditing, use the ConfD job db_configure and set
enable_auditing
totrue
. For example:Copyconfd_client db_configure db_name: MY_DATABASE enable_auditing: true
Verification
To verify that the database is configured with the new properties, use the ConfD job db_info. For example:
confd_client db_info db_name: MY_DATABASE