23ac2aa985
This adds the ability to include logstash log parsing filters for various openstack and service logs. These filters are disabled by default and can be enabled by toggling the deploy_logstash_filters variable. Change-Id: I5c46f78f232d3fb604283ae623cd3975a8346c7c
21 lines
625 B
Plaintext
21 lines
625 B
Plaintext
filter {
|
|
if "rabbitmq" in [tags] {
|
|
if [message] == "" {
|
|
drop { }
|
|
}
|
|
grok {
|
|
match => { "message" => "^\=%{LOGLEVEL:loglevel} REPORT\=\=\=\= %{MONTHDAY:event_day}\-%{MONTH:event_month}\-%{YEAR:event_year}\:\:%{TIME:event_time} \=\=\=\n%{GREEDYDATA:logmessage}" }
|
|
}
|
|
|
|
mutate {
|
|
replace => { "module" => "rabbitmq" }
|
|
add_field => { "timestamp" => "%{event_day} %{event_month} %{event_year} %{event_time}" }
|
|
}
|
|
|
|
date {
|
|
match => [ "timestamp", "dd MMM YYYY HH:mm:ss" ]
|
|
remove_field => [ "event_day", "event_month", "event_year", "event_time", "timestamp" ]
|
|
}
|
|
}
|
|
}
|