Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement to provide log file rotation #9

Closed
creechy opened this issue Jul 30, 2012 · 1 comment
Closed

Enhancement to provide log file rotation #9

creechy opened this issue Jul 30, 2012 · 1 comment

Comments

@creechy
Copy link
Contributor

creechy commented Jul 30, 2012

You have probably thought of this already, but it would be great if the log file support could do daily log file rotation. Having a single log file will undoubtedly become unweildly eventually, nor does it provide for easy archiving.

I am guessing for now, one could write their own log file roller if they use the socket option, but this means another process needs to run and an additional point of failure.

@glicht
Copy link
Contributor

glicht commented Aug 1, 2012

Thanks for submitting the issue.

The way we want to go is support flushing the logs and use logrotate, similar to what MySQL recommends using for other logs. See: http://dev.mysql.com/doc/refman/5.5/en/log-file-maintenance.html

Thing is, that we currently don't have flush logs support. The current option is using a script which will set audit_json_file=off (flush and close the log) and then set back audit_json_file=on. This is not perfect as there is a gap between the off and on. We will check how we can improve on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants