Browse Source

Add timezone to syslog decoder config

tags/2016.12
Éric Lemoine 8 years ago
parent
commit
b87ccd327d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      linux/meta/heka.yml

+ 4
- 0
linux/meta/heka.yml View File

@@ -1,3 +1,4 @@
{%- from "linux/map.jinja" import system with context %}
log_collector:
decoder:
system:
@@ -7,6 +8,9 @@ log_collector:
config:
syslog_pattern: '<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
fallback_syslog_pattern: '%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
{%- if system.timezone is defined %}
tz: "{{ system.timezone }}"
{%- endif %}
input:
linux_log_stream:
engine: logstreamer

Loading…
Cancel
Save