RabbitMQ log delimiter is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StackLight |
Fix Committed
|
Medium
|
guillaume thouvenin |
Bug Description
For the parsing of RabbitMQ logs a RegexSplitter is used with '\n(=[^=]+====)' for the delimiter [*]. That delimiter is not correct. It should be '\n\n(=[^=]+====)' (two newline characters).
RabbiMQ logs look like this:
=INFO REPORT==== 25-Feb-
Starting RabbitMQ 3.5.5 on Erlang R16B03-1
Copyright (C) 2007-2015 Pivotal Software, Inc.
Licensed under the MPL. See http://
=INFO REPORT==== 25-Feb-
node : rabbit@operator
home dir : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/
cookie hash : X03MO1qnZdYdgyf
log : /var/log/
sasl log : /var/log/
database dir : /var/lib/
=INFO REPORT==== 25-Feb-
Memory limit set to 1516MB of 3791MB total.
So when using only one newline character in the delimiter there's a problem at the very start of the RabbitMQ log stream. 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.
The solution to this problem is to use '\n\n(=[^=]+====)' as the delimiter. And using that delimiter is more correct anyway.
Also, the deliver_
[*] <https:/
[**] <http://
Changed in lma-toolchain: | |
assignee: | nobody → guillaume thouvenin (guillaume-thouvenin) |
status: | New → Triaged |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/287767
Review: https:/