diff options
author | Sébastien Determe <sd378r@intl.att.com> | 2018-03-28 15:37:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-28 15:37:48 +0000 |
commit | 54bafd49e8b3773a85992a946fea01d52299741b (patch) | |
tree | 186c238180a0c2fb29a3509373b2b9944fa8b3e6 /extra/docker/elk/logstash-conf/logstash.conf | |
parent | 57725fb589a9da5bb03e4e195a9d1590992f3d77 (diff) | |
parent | 853cd66613bbb2feb0d4c63d0cb3d97f5e1cba31 (diff) |
Merge changes I54ea0dc6,If352b7db,I7b8221ac,Idcfb7c5d
* changes:
Timeout triggered when querying dmaap
CL generation produce too long CL names
Request failure polluting results
More vizualisation for the dashboard
Diffstat (limited to 'extra/docker/elk/logstash-conf/logstash.conf')
-rw-r--r-- | extra/docker/elk/logstash-conf/logstash.conf | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/extra/docker/elk/logstash-conf/logstash.conf b/extra/docker/elk/logstash-conf/logstash.conf index 2b5a24e04..dec47b3c5 100644 --- a/extra/docker/elk/logstash-conf/logstash.conf +++ b/extra/docker/elk/logstash-conf/logstash.conf @@ -28,7 +28,7 @@ input { } socket_timeout => 30 request_timeout => 30 - interval => 15 + interval => 60 codec => "plain" } } @@ -88,12 +88,21 @@ output { codec => rubydebug } - elasticsearch { - codec => "json" - hosts => [elasticsearch] - index => "logstash-%{+YYYY.MM.DD}" # creates daily indexes - doc_as_upsert => true + if [http_request_failure] { + elasticsearch { + codec => "json" + hosts => [elasticsearch] + index => "errors-%{+YYYY.MM.DD}" + doc_as_upsert => true + } + } else { + elasticsearch { + codec => "json" + hosts => [elasticsearch] + index => "logstash-%{+YYYY.MM.DD}" # creates daily indexes + doc_as_upsert => true + } } } |