瀏覽代碼

Fix Syslog pattern for system logs

Currently Syslog doesn't log the priority ('<PRI>').
tags/2016.12
Simon Pasquier 8 年之前
父節點
當前提交
8db94b38f4
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      linux/meta/heka.yml

+ 1
- 2
linux/meta/heka.yml 查看文件

@@ -6,8 +6,7 @@ log_collector:
module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
adjust_timezone: true
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'
syslog_pattern: '%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
input:
linux_log_stream:
engine: logstreamer

Loading…
取消
儲存