Handle mutliline oslofmt traceback in logstash.
* modules/openstack_project/templates/logstash/indexer.conf.erb: Add a mutliline filter that matches oslo format TRACE level log lines. This will collect all lines related to the traceback in a single event. Change-Id: I201e407b6bd6fbb5b2db94fa6757f184709f2eaa Reviewed-on: https://review.openstack.org/32962 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Khai Do <zaro0508@gmail.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
aa925dd95e
commit
2f2169bc56
|
@ -50,6 +50,14 @@ filter {
|
||||||
what => "previous"
|
what => "previous"
|
||||||
stream_identity => "%{@source_host}.%{filename}"
|
stream_identity => "%{@source_host}.%{filename}"
|
||||||
}
|
}
|
||||||
|
multiline {
|
||||||
|
type => "jenkins"
|
||||||
|
tags => ["oslofmt"]
|
||||||
|
negate => false
|
||||||
|
pattern => "^%{DATESTAMP}%{SPACE}%{NUMBER}?%{SPACE}?TRACE"
|
||||||
|
what => "previous"
|
||||||
|
stream_identity => "%{@source_host}.%{filename}"
|
||||||
|
}
|
||||||
multiline {
|
multiline {
|
||||||
type => "jenkins"
|
type => "jenkins"
|
||||||
tags => ["keystonefmt"]
|
tags => ["keystonefmt"]
|
||||||
|
|
Loading…
Reference in New Issue