[copr][backend] logstash should send only stats only for requests with HTTP 200 response

This commit is contained in:
Valentin Gologuzov 2015-09-22 13:03:57 +02:00
parent 77e58e67e6
commit d3db07c139
2 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ filter {
}
output {
if "publish_stat" in [tags] {
if "publish_stat" in [tags] and "200" == [response] {
http {
url => "{{ frontend_base_url }}/stats_rcv/from_logstash"
format => "json"

View file

@ -53,6 +53,7 @@ FEDMENU_URL = "https://apps.fedoraproject.org/fedmenu/"
FEDMENU_DATA_URL = "https://apps.fedoraproject.org/js/data.js"
{% endif %}
# todo: check that ansible variable is used correctly
{% if env == 'staging' %}
ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http"
ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http"