Dear Team,
plugin-load = audit_log.so
audit-log = FORCE_PLUS_PERMANENT
audit_log_policy = ALL
audit_log_format = OLD
audit_log_rotate_on_size = 1M
audit_log_rotations = 31
audit_log_file = /var/lib/mysql/mysql_audit/audit.log
Is there any way to compress the audit logs.
Regards,
1 Like
I don’t see any variable to control the compression of Audit logs in the Percona server yet.
At this point, I think your 31 files of 1M would be just 31M, so I suggest managing it using the internal audit plugin without compression.
However, if you need compression, you can use other log rotation tools to manage the logs, like logrotate etc.
1 Like
Probably you can refer to below:
@pbirch @CTutte
Hello guys,
Sorry for response late!
Seems it works on mysql side. Thank you very much!
Installed the Audit Log Filter as below steps:
1.Create a audit database to store the JSON audit table
create database db_audit;
2.install the script: audit_log_filter_linux_install.sql
Find script:
INFRA [mysql@dc02psqldbuat04 share]# pwd
/data/percona8.0.36/share
INFRA [mysql@dc02psqldbuat04 share]# ls -l | grep audit_log_filter_linux_install.sql
-rw------- 1 mysql mysql 2316 …
Yunus
January 15, 2025, 3:59pm
4
Thanks for updating this topic.
Probably when the question was asked the plugin was not released
Here is the note for audit log filter plugin
The MySQL Audit Log Filter, an upgraded audit plugin with enhanced functionality akin to MySQL Enterprise Audit, is now available in technical preview as of Percona Server for MySQL 8.0.34-26.
Est. reading time: 3 minutes