[MDEV-4998] Audit plugin: Add a possibility to turn off log rotation Created: 2013-09-05  Updated: 2013-09-06  Resolved: 2013-09-06

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

Type: Task Priority: Minor
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: server_audit

Issue Links:
Relates
relates to MDEV-4472 Auditing Plugin Closed

 Description   

Based on the testing comments:

well it's easy thing to do. The initial idea was if the server_audit_file_rotations is 0,
that means no rotations at all.
The i decided not to do that as one has to limit the size of the log file somehow anyway.
And one can virtually turn off the rotation by setting a huge server_audit_file_rotate_size.
Elena, what is your opinion about that?

I absolutely think that it should be done, especially if it's an easy thing to do. Doing it via setting server_audit_file_rotations to 0 is fine with me, it's intuitive enough, I actually tried it the first thing after I saw that there was no boolean variable for rotation, only to find out that it didn't work, the value was adjusted to 1.

Doing it via server_audit_file_rotate_size, on the other hand, is dirty and is only acceptable as a temporary workaround.



 Comments   
Comment by Alexey Botchkov [ 2013-09-06 ]

Implemented so the server_audit_file_rotations=0 means the log never rotates.

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