Browse Source

Merge pull request #16 from elemoine/stacklight-timezone

Add timezone to syslog decoder config
tags/2016.12
Aleš Komárek 8 years ago
parent
commit
16d7afe534
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      linux/meta/heka.yml

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

{%- from "linux/map.jinja" import system with context %}
log_collector: log_collector:
decoder: decoder:
system: system:
config: config:
syslog_pattern: '<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n' 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' fallback_syslog_pattern: '%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
{%- if system.timezone is defined %}
tz: "{{ system.timezone }}"
{%- endif %}
input: input:
linux_log_stream: linux_log_stream:
engine: logstreamer engine: logstreamer

Loading…
Cancel
Save