private void preReadAuditSetting() {
        String tmpValue;
        // read whether enable audit
        tmpValue = this.props.get(KEY_ENABLE_AUDIT);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.enableAudit = "TRUE".equalsIgnoreCase(tmpValue.trim());
        }
        // read whether discovery audit proxys from manager
        tmpValue = this.props.get(KEY_AUDIT_PROXYS_DISCOVERY_MANAGER_ENABLE);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.enableAuditProxysDiscoveryFromManager = "TRUE".equalsIgnoreCase(tmpValue.trim());
        }
        // read audit proxys
        tmpValue = this.props.get(KEY_AUDIT_PROXYS);
        if (StringUtils.isNotBlank(tmpValue)) {
            String[] ipPorts = tmpValue.split(VAL_CONFIG_ITEMS_SEPARATOR);
            for (String tmpIPPort : ipPorts) {
                if (StringUtils.isBlank(tmpIPPort)) {
                    continue;
                }
                this.auditProxys.add(tmpIPPort.trim());
            }
        }
        // check auditProxys configure
        if (this.enableAudit) {
            if (!this.enableAuditProxysDiscoveryFromManager && this.auditProxys.isEmpty()) {
                LOG.error("{}'s {} must be configured when {} is true and {} is false, exist!",
                        COMMON_CONFIG_FILE_NAME, KEY_AUDIT_PROXYS, KEY_ENABLE_AUDIT,
                        KEY_AUDIT_PROXYS_DISCOVERY_MANAGER_ENABLE);
                System.exit(2);
            }
        }
        // read audit file path
        tmpValue = compatGetValue(this.props,
                KEY_AUDIT_FILE_PATHV2, KEY_AUDIT_FILE_PATH);
        if (StringUtils.isNotBlank(tmpValue)) {
            this.auditFilePath = tmpValue.trim();
        }
        // read audit max cache rows
        tmpValue = compatGetValue(this.props,
                KEY_AUDIT_MAX_CACHE_ROWSV2, KEY_AUDIT_MAX_CACHE_ROWS);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.auditMaxCacheRows = NumberUtils.toInt(
                    tmpValue.trim(), VAL_DEF_AUDIT_MAX_CACHE_ROWS);
        }
        // read audit format interval
        tmpValue = compatGetValue(this.props,
                KEY_AUDIT_TIME_FORMAT_INTERVAL, KEY_AUDIT_FORMAT_INTERVAL_MS);
        if (StringUtils.isNotEmpty(tmpValue)) {
            this.auditFormatInvlMs = NumberUtils.toLong(
                    tmpValue.trim(), VAL_DEF_AUDIT_FORMAT_INTERVAL_MS);
        }
    }
getStringFromContext

@param context
@param key
@param defaultValue
@return
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java