public static void initAudit(ADConfig adConfig) {
        // check whether enable audit
        if (adConfig == null || !adConfig.isAuditEnable()) {
            return;
        }
        // set audit configure
        auditConfig = adConfig;

        // initial audit instance
        AuditOperator.getInstance().setAuditProxy(adConfig.getAuditProxyAddrSet());
        AuditConfig auditConfig =
                new AuditConfig(adConfig.getAuditCacheFilePath(),
                        adConfig.getAuditCacheMaxRows());
        AuditOperator.getInstance().setAuditConfig(auditConfig);
    }
init audit instance

@param adConfig the initial configure
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/audit/AuditUtils.java