From 0622919c341e21a2aed9c764cb7fa12ccb32ed68 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Wed, 5 Jun 2024 08:17:49 +0200 Subject: [PATCH] Switch MariaDB log from general log to error log The general_log is providing a lot logs, that later are breaking logcli tool. We don't need to grab all logs, but just more important which are error_log messages. The fluentbit forwarder sidecard container for MariaDB is monitoring only logs with extension: '.log', so let's create such file, so the health check tests whould be also satisfied with that change. Change-Id: Ie3e4a8c9bcff12c86fed5c5acfa14d32e9b77245 --- controllers/static/mariadb/my.cnf.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/static/mariadb/my.cnf.tmpl b/controllers/static/mariadb/my.cnf.tmpl index 0cc1c937..6beb1195 100644 --- a/controllers/static/mariadb/my.cnf.tmpl +++ b/controllers/static/mariadb/my.cnf.tmpl @@ -8,5 +8,4 @@ init-file=/docker-entrypoint-initdb.d/initfile.sql innodb_file_per_table=on [mariadb] -general_log -general_log_file=/var/log/mariadb/mariadb.log +log_error=/var/log/mariadb/error.log