瀏覽代碼

Basic syslog heka inputs and decoders

tags/2016.12
Ales Komarek 9 年之前
父節點
當前提交
8759eee004
共有 1 個檔案被更改,包括 25 行新增2 行删除
  1. +25
    -2
      linux/files/heka.conf

+ 25
- 2
linux/files/heka.conf 查看文件

@@ -1,2 +1,25 @@
input: {}
decoder: {}
input:
linux_rsyslog_syslog:
engine: logstreamer
log_directory: /var/log
file_match: syslog\.?(?P<Index>\d+)?(.gz)?
priority: ["^Index"]
decoder: RsyslogDecoder
linux_rsyslog_auth:
engine: logstreamer
log_directory: /var/log
file_match: auth\.log\.?(?P<Index>\d+)?(.gz)?
priority: ["^Index"]
decoder: RsyslogDecoder
linux_rsyslog_kern:
engine: logstreamer
log_directory: /var/log
file_match: kern\.log\.?(?P<Index>\d+)?(.gz)?
priority: ["^Index"]
decoder: RsyslogDecoder
decoder:
rsyslog:
engine: rsyslog
template: \%TIMESTAMP\% \%HOSTNAME\% \%syslogtag\%\%msg:::sp-if-no-1st-sp\%\%msg:::drop-last-lf\%\n
hostname_keep: TRUE
tz: Europe/Prague

Loading…
取消
儲存