[MDEV-5001] Either apply the dynamic change of audit log name or don't allow the change when logging is ON Created: 2013-09-09  Updated: 2014-04-13  Resolved: 2014-04-13

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

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


 Description   

Quote from the testing comments:

> - changing setting server_audit_file_path dynamically is allowed, but has no effect;
that's how it's done. The variable is changed but the value is only used when the logging is started.

Well, it can't stay like that. People will set the path, and days later won't be able to find the log, or worse still, will remove the file with the old name, being sure it's unused.

There are options:
1) make it work "on fly". After all, it works for general log, so why not for audit plugin?
2) if it's impossible or undesirable on whatever reason, forbid changing the log name when server_audit_logging is ON, with a proper error message. It will provide clear information to the person who is trying to change the path, and (if the change is necessary) will make them restart the logging to ensure that the new name is indeed picked up.



 Comments   
Comment by Elena Stepanova [ 2014-04-13 ]

It's been fixed now, at least as of 5.5.36 and 10.0.10. The log gets switched on fly.

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