[MDEV-5554] MariaDB Audit Plugin for MySQL 5.5.16 and Percona XtraDB Cluster 5.5.34-23.7.6.565 Created: 2014-01-23  Updated: 2014-04-11  Resolved: 2014-04-11

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Clete Penrod Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: plugins, server_audit


 Description   

MariaDB Audit Plugin version 1.1.3

/etc/my.cnf

# Settings for Server Audit Plugin
plugin-load=server_audit=server_audit.so
server_audit_logging=ON
server_audit_output_type=SYSLOG
server_audit_events=CONNECT
server_audit_syslog_ident=mysql-server_auditing

Plugin starts, but is not logging anywhere:

mysql> show global variables like 'server_aud%';
+-------------------------------+-----------------------+
| Variable_name                 | Value                 |
+-------------------------------+-----------------------+
| server_audit_events           | CONNECT               |
| server_audit_excl_users       |                       |
| server_audit_file_path        | server_audit.log      |
| server_audit_file_rotate_now  | OFF                   |
| server_audit_file_rotate_size | 1000000               |
| server_audit_file_rotations   | 9                     |
| server_audit_incl_users       |                       |
| server_audit_logging          | ON                    |
| server_audit_mode             | 1                     |
| server_audit_output_type      | ?                     |
| server_audit_syslog_facility  | LOG_USER              |
| server_audit_syslog_ident     | mysql-server_auditing |
| server_audit_syslog_info      |                       |
| server_audit_syslog_priority  | LOG_INFO              |
+-------------------------------+-----------------------+
14 rows in set (0.00 sec)

I can load the plugin from sql and logging works great.

set global server_audit_output_type=SYSLOG;

Need to be able to set logging output type from the my.cnf file.



 Comments   
Comment by Clete Penrod [ 2014-02-25 ]

Just grabbed the 1.1.5 version. Its loading and logging correctly to SYSLOG now with the settings defined in the my.cnf file.

Comment by Elena Stepanova [ 2014-04-11 ]

Given the comment above, I assume it can be closed as fixed. Please comment to re-open if there is still something to do here.

Generated at Thu Feb 08 07:05:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.