Parse Syslog messages without priority

Some log files may contain messages generated before RSYSLOG is fully
configured (for instance, /var/log/kern.log). This change adds a
fallback Syslog grammar that will handle this kind of messages.

Change-Id: I9184abda924fbbb7d19884ead6775331d41f9468
This commit is contained in:
Simon Pasquier
2015-04-14 12:04:37 +02:00
parent 9e6fd8a570
commit 11bfda8cd9
4 changed files with 17 additions and 3 deletions

View File

@@ -6,7 +6,8 @@ class lma_collector::logs::system {
config_dir => $lma_collector::params::config_dir,
filename => "${lma_collector::params::plugins_dir}/decoders/generic_syslog.lua" ,
config => {
syslog_pattern => $lma_collector::params::syslog_pattern
syslog_pattern => $lma_collector::params::syslog_pattern,
fallback_syslog_pattern => $lma_collector::params::fallback_syslog_pattern
},
notify => Class['lma_collector::service'],
}