aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2016-03-23 02:08:29 -0400
committerSteven Dake <stdake@cisco.com>2016-03-23 02:08:29 -0400
commit8307b06a46b77f8b57a65b2eb74d797e5b794ca6 (patch)
tree176be4e60373a8b1f587754140fd94ad60e08c50
parent87796b0f0c4eb539f5e88b8bfff670fcf3c80c55 (diff)
downloadkolla-8307b06a46b77f8b57a65b2eb74d797e5b794ca6.tar.gz
kolla-8307b06a46b77f8b57a65b2eb74d797e5b794ca6.zip
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
-rw-r--r--ansible/roles/common/templates/heka-swift.toml.j26
1 files 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 2bd9443f3..c70b1631d 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"