aboutsummaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/logstash-conf/logstash.conf
diff options
context:
space:
mode:
authorSébastien Determe <sd378r@intl.att.com>2018-09-11 09:11:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-11 09:11:08 +0000
commit3aec59e72323d6b04640061ad8d1cd57f6f31e11 (patch)
treeb3b30d4d1b615e66a0e1a2646a24f2b4f922d661 /extra/docker/elk/logstash-conf/logstash.conf
parent23c4c2752564b7ec967b3176600578be5a1cb08b (diff)
parent07401e84086dea28a0c6d7cb3a1fd7f0b94011c3 (diff)
Merge "Upgrade ELK to 6.1.3"
Diffstat (limited to 'extra/docker/elk/logstash-conf/logstash.conf')
-rw-r--r--extra/docker/elk/logstash-conf/logstash.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/docker/elk/logstash-conf/logstash.conf b/extra/docker/elk/logstash-conf/logstash.conf
index c511995f0..2b71686fa 100644
--- a/extra/docker/elk/logstash-conf/logstash.conf
+++ b/extra/docker/elk/logstash-conf/logstash.conf
@@ -31,8 +31,8 @@ input {
}
socket_timeout => 30
request_timeout => 30
- interval => 60
codec => "plain"
+ schedule => { "every" => "1m" }
}
}
@@ -131,15 +131,15 @@ output {
if [http_request_failure] {
elasticsearch {
codec => "json"
- hosts => [elasticsearch]
+ hosts => ["${elasticsearch_hosts}"]
index => "errors-%{+YYYY.MM.DD}"
doc_as_upsert => true
}
} else {
elasticsearch {
codec => "json"
- hosts => [elasticsearch]
- index => "logstash-%{+YYYY.MM.DD}" # creates daily indexes
+ hosts => ["${elasticsearch_hosts}"]
+ index => "events-%{+YYYY.MM.DD}" # creates daily indexes
doc_as_upsert => true
}