public class ConfigInputDetail extends LocalFileConfigInputDetail implements Serializable
advanced, delaySkipBytes, discardNonUtf8, discardUnmatch, dockerExcludeEnv, dockerExcludeLabel, dockerIncludeEnv, dockerIncludeLabel, fileEncoding, filePattern, isDockerFile, logPath, logType, maxDepth, pluginDetail, preserve, preserveDepth, tailExisted, timeFormat, topicFormatadjustTimezone, delayAlarmBytes, enableRawLog, enableTag, filterKey, filterRegex, localStorage, logTimezone, maxSendRate, mergeType, priority, sendRateExpire, sensitiveKeys, shardHashKey| Constructor and Description |
|---|
ConfigInputDetail() |
ConfigInputDetail(ConfigInputDetail inputDetail) |
ConfigInputDetail(String logPath,
String filePattern,
String logType,
String logBeginRegex,
String regex,
ArrayList<String> key,
String timeFormat,
boolean localStorage) |
ConfigInputDetail(String logPath,
String filePattern,
String logType,
String logBeginRegex,
String regex,
ArrayList<String> key,
String timeFormat,
boolean localStorage,
String customizedFields) |
| Modifier and Type | Method and Description |
|---|---|
void |
FromJsonObject(com.alibaba.fastjson.JSONObject inputDetail) |
void |
FromJsonString(String inputDetailString) |
String |
GetCustomizedFields() |
ArrayList<String> |
GetKey() |
String |
GetLogBeginRegex() |
String |
GetRegex() |
void |
SetCustomizedFields(String customizedFields) |
void |
SetKey(ArrayList<String> key) |
void |
SetKey(com.alibaba.fastjson.JSONArray key) |
void |
SetLogBeginRegex(String logBeginRegex) |
void |
SetRegex(String regex) |
com.alibaba.fastjson.JSONObject |
ToJsonObject() |
String |
ToJsonString() |
getAdvanced, getDelaySkipBytes, GetDiscardNonUtf8, GetDiscardUnmatch, getDockerExcludeEnv, getDockerExcludeLabel, getDockerIncludeEnv, getDockerIncludeLabel, GetFileEncoding, GetFilePattern, GetLogPath, GetLogType, GetMaxDepth, GetPluginDetail, GetPreserve, GetPreserveDepth, GetTailExisted, GetTimeFormat, GetTopicFormat, isDockerFile, LocalFileConfigFromJsonObject, LocalFileConfigToJsonObject, setAdvanced, setDelaySkipBytes, SetDiscardNonUtf8, SetDiscardUnmatch, setDockerExcludeEnv, setDockerExcludeLabel, setDockerFile, setDockerIncludeEnv, setDockerIncludeLabel, SetFileEncoding, SetFilePattern, SetLogPath, SetLogType, SetMaxDepth, SetPluginDetail, SetPreserve, SetPreserveDepth, SetTailExisted, SetTimeFormat, SetTopicFormatCommonConfigFromJsonObject, CommonConfigToJsonObject, FromJsonObjectS, FromJsonStringS, getDelayAlarmBytes, GetEnableRawLog, GetEnableTag, GetFilterKey, GetFilterRegex, GetLocalStorage, getLogTimezone, getMaxSendRate, getMergeType, getPriority, getSendRateExpire, GetSensitiveKeys, GetShardHashKey, isAdjustTimezone, setAdjustTimezone, setDelayAlarmBytes, SetEnableRawLog, SetEnableTag, SetFilterKey, SetFilterKeyRegex, SetFilterRegex, SetLocalStorage, setLogTimezone, setMaxSendRate, setMergeType, setPriority, setSendRateExpire, SetSensitiveKeys, SetShardHashKey, SetShardHashKeyListpublic ConfigInputDetail()
public ConfigInputDetail(String logPath, String filePattern, String logType, String logBeginRegex, String regex, ArrayList<String> key, String timeFormat, boolean localStorage)
logPath - the log file dir pathfilePattern - the file name pattern, e.g "access.log" , "access.log.*"logType - the log data type , currently it only support
"common_reg_log", "apsara_log", "streamlog"logBeginRegex - the regex used to check if one line match the start of a logregex - the regex used to parse the log data if log type is
"common_reg_log", leave to "" if log type is "apsara_log"key - the key lists for every captured value using the defined
regex, "time" must be one name in keytimeFormat - the time format to parse the "time" fieldlocalStorage - true if save the log data if failed to send to the sls serverpublic ConfigInputDetail(String logPath, String filePattern, String logType, String logBeginRegex, String regex, ArrayList<String> key, String timeFormat, boolean localStorage, String customizedFields)
logPath - the log file dir pathfilePattern - the file name pattern, e.g "access.log" , "access.log.*"logType - the log data type , currently it only support
"common_reg_log", "apsara_log", "streamlog"logBeginRegex - the regex used to check if one line match the start of a logregex - the regex used to parse the log data if log type is
"common_reg_log", leave to "" if log type is "apsara_log"key - the key lists for every captured value using the defined
regex, "time" must be one name in keytimeFormat - the time format to parse the "time" fieldlocalStorage - true if save the log data if failed to send to the sls servercustomizedFields - the customized fields configuration for special usagepublic ConfigInputDetail(ConfigInputDetail inputDetail)
public com.alibaba.fastjson.JSONObject ToJsonObject()
ToJsonObject in class CommonConfigInputDetailpublic String ToJsonString()
public void FromJsonObject(com.alibaba.fastjson.JSONObject inputDetail)
throws LogException
FromJsonObject in class CommonConfigInputDetailLogExceptionpublic void FromJsonString(String inputDetailString) throws LogException
LogExceptionpublic void SetKey(com.alibaba.fastjson.JSONArray key)
throws LogException
LogExceptionpublic String GetLogBeginRegex()
public void SetLogBeginRegex(String logBeginRegex)
public String GetRegex()
public void SetRegex(String regex)
public String GetCustomizedFields()
public void SetCustomizedFields(String customizedFields)
Copyright © 2025. All Rights Reserved.