openstack-ansible-ops/elk_metrics_6x/templates/18-ceph.conf
Dave Wilde 23ac2aa985 Add logstash filters
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
2018-06-07 22:13:48 -05:00

13 lines
393 B
Plaintext

filter {
if "ceph" in [tags] {
grok {
match => { "message" => "%{TIMESTAMP_ISO8601:date} %{NOTSPACE:osd_epoch} ?%{SPACE}?%{NOTSPACE:error_bool} %{GREEDYDATA:logmessage}" }
}
}
if "ceph-osd" in [tags] {
grok {
match => { "message" => "-- (?<src_host>(%{IPORHOST}\:%{POSINT}/%{POSINT})) (?:[<|>]){1,2} (?<dst_host>(%{IPORHOST}\:%{POSINT}/%{POSINT}))" }
}
}
}