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"