Handle mulitline console log lines.

* modules/openstack_project/templates/logstash/agent.conf.erb: Add
multiline filters to properly capture multiline log lines that do not
include their own timestamp.

Change-Id: I127e327cf6bdde580dcdfbe185f77fae3bd8d2c5
Reviewed-on: https://review.openstack.org/26530
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2013-04-09 14:10:36 -07:00 committed by Jenkins
parent 24d3f11326
commit 34a1e989c7
1 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,16 @@ filter {
negate => true
match => ["@message", "^</?pre>$"]
}
multiline {
type => "jenkins_console"
pattern => "^\"'$"
what => "previous"
}
multiline {
type => "jenkins_console"
pattern => "^Extracting templates from packages"
what => "previous"
}
grok {
type => "jenkins_console"
pattern => [ "%{DATESTAMP:logdate} \| %{GREEDYDATA:logmessage}" ]