From c8984ca355649a27446d8198151bf2989159b8a3 Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Tue, 24 Oct 2017 13:30:07 +0100 Subject: [PATCH] Extract log level from syslog By default the syslog input plugin won't extract the log level from a syslog message. By setting the priority key, the log level is extracted. Partial-Bug: #1725240 Change-Id: I9ad5f5e1c875ef62b39fbbba7b271d98cee68dd6 --- ansible/roles/common/templates/conf/input/01-syslog.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/common/templates/conf/input/01-syslog.conf.j2 b/ansible/roles/common/templates/conf/input/01-syslog.conf.j2 index f01f74c5fe..762d48f977 100644 --- a/ansible/roles/common/templates/conf/input/01-syslog.conf.j2 +++ b/ansible/roles/common/templates/conf/input/01-syslog.conf.j2 @@ -3,5 +3,6 @@ port {{ fluentd_syslog_port }} bind {{ api_interface_address }} tag syslog + priority_key log_level format /^(?.*)$/