This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch v20230401-master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/v20230401-master by this push:
     new 72e4c22164 [fix](audit-log) fixslow query missing in audit log (#18317)
72e4c22164 is described below

commit 72e4c22164f16236e2bc17f075d2c847a67b86f3
Author: Mingyu Chen <[email protected]>
AuthorDate: Mon Apr 3 08:52:14 2023 +0800

    [fix](audit-log) fixslow query missing in audit log (#18317)
    
    #17738 changed the column name in audit log, causing "slow_query" will not 
be recorded in fe.audit.log
---
 fe/fe-core/src/main/java/org/apache/doris/qe/AuditLogBuilder.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/AuditLogBuilder.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/AuditLogBuilder.java
index b0bd2275e7..1258d0b337 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/AuditLogBuilder.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/AuditLogBuilder.java
@@ -111,7 +111,7 @@ public class AuditLogBuilder extends Plugin implements 
AuditPlugin {
                 continue;
             }
 
-            if (af.value().equals("Time")) {
+            if (af.value().equals("Time(ms)")) {
                 queryTime = (long) f.get(event);
             }
             
sb.append("|").append(af.value()).append("=").append(String.valueOf(f.get(event)));
@@ -161,3 +161,4 @@ public class AuditLogBuilder extends Plugin implements 
AuditPlugin {
         AuditLog.getStreamLoadAudit().log(auditLog);
     }
 }
+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to