From cacff8c1aafeb3ed5c80a679337ff104c555102b Mon Sep 17 00:00:00 2001 From: Magnus Root Date: Fri, 27 Feb 2026 14:19:32 +0300 Subject: [PATCH] Answers variables --- dashboard_template.json | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/dashboard_template.json b/dashboard_template.json index 44588b2..5407948 100644 --- a/dashboard_template.json +++ b/dashboard_template.json @@ -733,7 +733,7 @@ }, "query_mode": "bucket_logs", "query_config": { - "base_query": "log_type:access AND SID:${SID:lucene}", + "base_query": "log_type:access AND SID:${SID:lucene} AND response_status_code:${response_status_code:lucene}", "bucket_aggs": [ { "field": "response_status_code", @@ -1309,6 +1309,31 @@ "$__all" ] } + }, + { + "name": "response_status_code", + "label": "Status Code", + "description": "Конкретный код ответа", + "type": "query", + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "af84zsvlp9blsa" + }, + "definition": "{\"find\": \"terms\", \"field\": \"response_status_code\"}", + "query": "{\"find\": \"terms\", \"field\": \"response_status_code\"}", + "refresh": 1, + "includeAll": true, + "multi": true, + "allValue": "*", + "sort": 1, + "regex": "", + "allowCustomValue": false, + "current": { + "text": "All", + "value": [ + "$__all" + ] + } } ] }