From 8307b06a46b77f8b57a65b2eb74d797e5b794ca6 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 23 Mar 2016 02:08:29 -0400 Subject: [PATCH] Swift busted with Heka Swift and heka were broken by an optimization that resulted in a regression in commit: 0a1486a2c73275009f7158c911e7bfd683e40a58 This patch fixes that problem. Change-Id: I02c6cf4de4f807c3ec66e2d4f59f182d0b864ea3 Closes-Bug: #1560788 --- ansible/roles/common/templates/heka-swift.toml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/common/templates/heka-swift.toml.j2 b/ansible/roles/common/templates/heka-swift.toml.j2 index 2bd9443f35..c70b1631db 100644 --- a/ansible/roles/common/templates/heka-swift.toml.j2 +++ b/ansible/roles/common/templates/heka-swift.toml.j2 @@ -1,9 +1,9 @@ # Swift writes its logs to Syslog, so the generic Syslog input set in # heka-global.toml.j2 is used. -[{{ item }}_file_output] +[{{ item.name }}_file_output] type = "FileOutput" -message_matcher = "Fields[programname] == '{{ item }}'" -path = "/var/log/kolla/swift/{{ item }}.log" +message_matcher = "Fields[programname] == '{{ item.name }}'" +path = "/var/log/kolla/swift/{{ item.name }}.log" encoder = "syslog_encoder" folder_perm = "755"