summaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/logstash-conf/logstash.conf
diff options
context:
space:
mode:
Diffstat (limited to 'extra/docker/elk/logstash-conf/logstash.conf')
-rw-r--r--extra/docker/elk/logstash-conf/logstash.conf21
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
+ }
}
}