From dda5269ce75526b90a2d8e3b7983d876d4193588 Mon Sep 17 00:00:00 2001 From: Justinas Balciunas Date: Thu, 2 Jul 2020 08:22:01 +0000 Subject: [PATCH] Fix Fluentd date format for MariaDB xinetd Time format in Ruby Time.strptime is not accepting padding flags, therefore we need to remove them for the Fluentd to be able to parse MariaDB xinetd logs properly. Change-Id: Iabfa9afdcad505106a5580eb2d058273ee5f7c1f Closes-Bug: #1886002 --- ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 b/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 index 44d9484b27..11152b71bd 100644 --- a/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 +++ b/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 @@ -20,7 +20,7 @@ format1 /^(?\S+) (?.*)?$/ time_key Timestamp keep_time_key true - time_format %y/%-m/%-d@%T + time_format %y/%m/%d@%T ignore_repeated_permission_error true enable_watch_timer false