Audit Plugin - Log File Permissions

I need to be able to specify the file permissions for my server_audit.log files and all of the rotated logs. Where can I configure that? If I manually set the file permissions, they are overwritten as soon as the rotation occurs. I can't find the "logrotate.d" file for where the settings are pulled from.

Answer Answered by Daniel Black in this comment.

There is no logrotate file, the rotation are performed by the audit plugin itself.

If you want to control the rotation and permission yourself, I suggest using server_audit_output_type=SYSLOG, and the other syslog settings of the plugin, and then configure your syslog service to output the appropriate files and use your own logrotate.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.