Move slow_query_log_file to location handled by logrotation
Currently slow_query_log_file is not set and the default of `host_name-slow.log` is applied. This causes an ever growing slow log to fill up `/var/lib/mysql` and which is never rotated. By placing this file at `/var/log/mysql/mariadb-slow.log` it will be rotated by the bundled logrotate config of the `mysql-server` package. Change-Id: Ib66eb5c6bdf94b6c6f4461a7f6e339c1000e0afc
This commit is contained in:
parent
090d3cc63e
commit
6c383a92a5
@ -148,6 +148,7 @@ galera_mariabackup_threads: 4
|
||||
|
||||
# Galera slow/unindexed query logging
|
||||
galera_slow_query_logging: 0
|
||||
galera_slow_query_log_file: "/var/log/mysql/mariadb-slow.log"
|
||||
galera_unindexed_query_logging: 0
|
||||
|
||||
## Tunable overrides
|
||||
|
@ -45,6 +45,7 @@ ssl-key = {{ galera_ssl_key }}
|
||||
# LOGGING #
|
||||
log-queries-not-using-indexes = {{ galera_unindexed_query_logging }}
|
||||
slow-query-log = {{ galera_slow_query_logging }}
|
||||
slow_query_log_file = {{ galera_slow_query_log_file }}
|
||||
log-bin = {{ galera_data_dir }}/mariadb-bin
|
||||
log-bin-index = {{ galera_data_dir }}/mariadb-bin.index
|
||||
expire-logs-days = 7
|
||||
|
Loading…
x
Reference in New Issue
Block a user