Bladeren bron

Fix Syslog pattern for system logs

Currently Syslog doesn't log the priority ('<PRI>').
tags/2016.12
Simon Pasquier 8 jaren geleden
bovenliggende
commit
8db94b38f4
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. +1
    -2
      linux/meta/heka.yml

+ 1
- 2
linux/meta/heka.yml Bestand weergeven

@@ -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

Laden…
Annuleren
Opslaan