[copr][backend] logstash should send only stats only for requests with HTTP 200 response
This commit is contained in:
parent
77e58e67e6
commit
d3db07c139
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue