diff --git a/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java b/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java index 3487dbc9..2e57f85c 100644 --- a/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java +++ b/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java @@ -96,6 +96,8 @@ public RestQuotaController quota(RestRequest.Method method, String regexPath, in if (trace) log.trace(String.format("Reject %s request [%s] from address {%s} - maxCallCount: %s, duration: '%s%s'", method, regexPath, address, maxCount, duration, unit.name())); + + // Save the IP into the log/request index if (logRejectedRequests) { if (!trace) log.warn(String.format("Reject %s request [%s] from address {%s} - maxCallCount: %s, duration: '%s%s'", method, regexPath, address,