QuestionQ172
Database SecurityConsider this statement, which executes successfully:
mysql> SOURCE /usr/share/mysql-8.0/audit_log_filter_linux_install.sql
You then reconnect to MySQL and run several queries.
Now review the resulting text content of the \{datadir\}/audit.log file:

What must you do for the file to contain visible statement events?
- A You must read the audit log statements through the Performance Schema.
- B You must use the audit_log_read() and audit_log_read_bookmark() functions to read the statement events.
- C You must use the audit_log_filter_set_filter() and audit_log_filter_set_user() functions to specify what to log.
- D You must add audit_log = ON to the MySQL configuration file and restart MySQL to log statements.
- E You must wait for the audit log buffer to fill before it will flush to disk.
Community Discussion