From e4e842be405d3fc0c606a2314c7095a0b7265bb3 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Thu, 6 Oct 2016 16:13:16 +0000 Subject: [PATCH] fix can't collect horizon log in heka Change-Id: Idecb70e90ae560d1c41756e3617225556087dd19 Closes-Bug: #1631048 --- ansible/roles/common/templates/heka-horizon.toml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/common/templates/heka-horizon.toml.j2 b/ansible/roles/common/templates/heka-horizon.toml.j2 index d3d4ac100c..b447e9938a 100644 --- a/ansible/roles/common/templates/heka-horizon.toml.j2 +++ b/ansible/roles/common/templates/heka-horizon.toml.j2 @@ -8,6 +8,6 @@ filename = "lua_decoders/os_horizon_apache_log.lua" type = "LogstreamerInput" decoder = "horizon_apache_log_decoder" log_directory = "/var/log/kolla" -file_match = 'horizon/horizon-apache-(?P.+)-access\.log\.?(?P\d*)$' +file_match = 'horizon/(?Phorizon.*)\.log\.?(?P\d*)$' priority = ["^Seq"] -differentiator = ["horizon-apache-", "Service"] +differentiator = ["Service"]