kolla-ansible/ansible/roles/common/templates/heka-horizon.toml.j2
zhubingbing e4e842be40 fix can't collect horizon log in heka
Change-Id: Idecb70e90ae560d1c41756e3617225556087dd19
Closes-Bug: #1631048
2016-10-07 02:57:15 +00:00

14 lines
503 B
Django/Jinja

[horizon_apache_log_decoder]
type = "SandboxDecoder"
filename = "lua_decoders/os_horizon_apache_log.lua"
[horizon_apache_log_decoder.config]
apache_log_pattern = '%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"'
[horizon_apache_logstreamer_input]
type = "LogstreamerInput"
decoder = "horizon_apache_log_decoder"
log_directory = "/var/log/kolla"
file_match = 'horizon/(?P<Service>horizon.*)\.log\.?(?P<Seq>\d*)$'
priority = ["^Seq"]
differentiator = ["Service"]