kolla-ansible/ansible/roles/common/templates/heka-grafana.toml.j2
zhubingbing 504852d528 add grafana log in heka
Change-Id: I38b57cc43411b703dbb0639a600aaef58e01bc38
Closes-Bug: #1631818
2016-10-10 15:17:04 +00:00

19 lines
493 B
Django/Jinja

[grafana_log_decoder]
type = "SandboxDecoder"
filename = "lua_decoders/os_grafana_log.lua"
[grafana_log_splitter]
type = "RegexSplitter"
delimiter = '\n\n(=[^=]+====)'
delimiter_eol = false
deliver_incomplete_final = true
[grafana_logstreamer_input]
type = "LogstreamerInput"
decoder = "grafana_log_decoder"
splitter = "grafana_log_splitter"
log_directory = "/var/log/kolla"
file_match = 'grafana/(?P<Service>grafana.*)\.log\.?(?P<Seq>\d*)$'
priority = ["^Seq"]
differentiator = ["Service"]