From 7f1248fee5b4c067b7033dbf8731f4d83be0d86d Mon Sep 17 00:00:00 2001
From: John Garbutt <john.garbutt@stackhpc.com>
Date: Thu, 3 Jun 2021 11:52:14 +0100
Subject: [PATCH] Fix parsing of infra.mariadb.xinetd logs

Currently the logs tagged with infra.mariadb.xinetd flow into
elasticsearch with no hostname or programname attach, thus making
navigating the logs very hard.

The quick fix is renaming the tag to infra.mariadb-xinetd, which is just
enought to ensure the logs are processed correctly with the existing
filters.

TrivialFix

Change-Id: Icd72206de7c1f701bdf35c8fb3b128ef2dbe29a8
---
 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 11152b71bd..8744db47aa 100644
--- a/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2
+++ b/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2
@@ -14,7 +14,7 @@
   @type tail
   path /var/log/kolla/mariadb/xinetd.log
   pos_file /var/run/{{ fluentd_binary }}/mariadb-xinetd.pos
-  tag infra.mariadb.xinetd
+  tag infra.mariadb-xinetd
   format multiline
   format_firstline /^\d{2}/\d{1,2}/\d{1,2}@\d{1,2}:\d{1,2}:\d{1,2}\: (START|EXIT)\: /
   format1 /^(?<Timestamp>\S+) (?<Payload>.*)?$/
-- 
GitLab