From 22cc0ef0cf4008506b8ef14453f27cb0123ae68b Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 24 May 2023 15:55:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9A=E6=97=B6=E5=88=A0=E9=99=A4ES?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=BD=93=E5=A4=A9=E4=BB=A5=E5=89=8D=E6=89=80=E6=9C=89=E7=9A=84?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fit2cloud/service/impl/LogServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/management-center/backend/src/main/java/com/fit2cloud/service/impl/LogServiceImpl.java b/framework/management-center/backend/src/main/java/com/fit2cloud/service/impl/LogServiceImpl.java index 9d9c7bc76..7fffb6fdf 100644 --- a/framework/management-center/backend/src/main/java/com/fit2cloud/service/impl/LogServiceImpl.java +++ b/framework/management-center/backend/src/main/java/com/fit2cloud/service/impl/LogServiceImpl.java @@ -174,7 +174,7 @@ public void deleteEsData(String index, int m, Class clazz) { //provide.delete(5,"ce-file-system-logs", SystemLog.class); RangeQuery.Builder rangeQuery = new RangeQuery.Builder(); rangeQuery.field("@timestamp"); - rangeQuery.lt(JsonData.of("now-" + m + "m")); + rangeQuery.lt(JsonData.of("now-" + m + "M")); rangeQuery.format("epoch_millis"); Query query = new Query.Builder().range(rangeQuery.build()).build(); NativeQueryBuilder builder = new NativeQueryBuilder();