aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorac2550 <ac2550@intl.att.com>2018-03-28 14:41:44 +0200
committerac2550 <ac2550@intl.att.com>2018-03-28 14:41:44 +0200
commitba939626315ea48a9c41a8a4fd0b7c052d9dce00 (patch)
tree8645c3ed4c9c1d0e9487c16039822dd801b2c6e8 /extra
parent8c277f03428b027cb0b153a484adf70b8b677f72 (diff)
Request failure polluting results
Change-Id: I7b8221ace6df00c6239f102f365c8d6db0dce41a Issue-ID: CLAMP-124 Signed-off-by: ac2550 <ac2550@intl.att.com>
Diffstat (limited to 'extra')
-rw-r--r--extra/docker/elk/logstash-conf/logstash.conf19
1 files changed, 14 insertions, 5 deletions
diff --git a/extra/docker/elk/logstash-conf/logstash.conf b/extra/docker/elk/logstash-conf/logstash.conf
index 2b5a24e04..4a7b151d0 100644
--- a/extra/docker/elk/logstash-conf/logstash.conf
+++ b/extra/docker/elk/logstash-conf/logstash.conf
@@ -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
+ }
}
}