Update RabbitMQ log delimiter

This patch modifies the regex used by the rabbitmq splitter. It adds a
newline constant at the beginning of the regex to avoid to match the
first pattern of the log file. We observed that sometimes, the log
stream starts with a new line, so Heka finds a delimiter match on the
first two lines. But it does not have content for this log entry so it
may stop there.

Known issue: you miss the first log entry.

Change-Id: Ib2208db842de9f30a95a514f0e51d00d693374e1
Closes-Bug: #1550222
This commit is contained in:
Guillaume Thouvenin 2016-03-03 13:39:50 +01:00
parent 12be7cf781
commit 6fe3df80d5

View File

@ -24,7 +24,7 @@ class lma_collector::logs::rabbitmq {
heka::splitter::regex { 'rabbitmq':
config_dir => $lma_collector::params::config_dir,
delimiter => '\n(=[^=]+====)',
delimiter => '\n\n(=[^=]+====)',
delimiter_eol => false,
notify => Class['lma_collector::service'],
}