diff --git a/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py b/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py index 9c5533146..20a52eb39 100644 --- a/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py +++ b/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py @@ -108,10 +108,12 @@ def _build_base_search(self, order: Optional[bool] = None) -> Search: s = s.filter("term", request_id=self._request_id) if self._include_conditions: - s = s.filter("term", **self._include_conditions) + for key, val in self._include_conditions.items(): + s = s.filter("term", **{key: val}) if self._exclude_conditions: - s = s.exclude("term", **self._exclude_conditions) + for key, val in self._exclude_conditions.items(): + s = s.exclude("term", **{key: val}) # time range if self._smart_time_range: