public class ExtractRuleInfo extends AbstractModel
| Constructor and Description |
|---|
ExtractRuleInfo() |
ExtractRuleInfo(ExtractRuleInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Get Listening address and port specified by the syslog collection.
|
Long |
getBacktracking()
Get Size of the data to be rewound in incremental collection mode.
|
String |
getBeginRegex()
Get First-Line matching rule, which is valid only if `log_type` is `multiline_log` or `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getDelimiter()
Get Delimiter for delimited log, which is valid only if `log_type` is `delimiter_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
KeyRegexInfo[] |
getFilterKeyRegex()
Get Log keys to be filtered and the corresponding regex
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getIsGBK()
Get Whether to be encoded in GBK format.
|
Long |
getJsonStandard()
Get Whether to be formatted as JSON (standard).
|
String[] |
getKeys()
Get Key name of each extracted field.
|
String |
getLogRegex()
Get Full log matching rule, which is valid only if `log_type` is `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getParseProtocol()
Get `rfc3164`: Resolve logs by using the RFC3164 protocol during the syslog collection.
|
String |
getProtocol()
Get Syslog protocol.
|
String |
getTimeFormat()
Get Time field format.
|
String |
getTimeKey()
Get Time field key name.
|
String |
getUnMatchLogKey()
Get Unmatched log key
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Boolean |
getUnMatchUpLoadSwitch()
Get Whether to upload the logs that failed to be parsed.
|
void |
setAddress(String Address)
Set Listening address and port specified by the syslog collection.
|
void |
setBacktracking(Long Backtracking)
Set Size of the data to be rewound in incremental collection mode.
|
void |
setBeginRegex(String BeginRegex)
Set First-Line matching rule, which is valid only if `log_type` is `multiline_log` or `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setDelimiter(String Delimiter)
Set Delimiter for delimited log, which is valid only if `log_type` is `delimiter_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setFilterKeyRegex(KeyRegexInfo[] FilterKeyRegex)
Set Log keys to be filtered and the corresponding regex
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setIsGBK(Long IsGBK)
Set Whether to be encoded in GBK format.
|
void |
setJsonStandard(Long JsonStandard)
Set Whether to be formatted as JSON (standard).
|
void |
setKeys(String[] Keys)
Set Key name of each extracted field.
|
void |
setLogRegex(String LogRegex)
Set Full log matching rule, which is valid only if `log_type` is `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setParseProtocol(String ParseProtocol)
Set `rfc3164`: Resolve logs by using the RFC3164 protocol during the syslog collection.
|
void |
setProtocol(String Protocol)
Set Syslog protocol.
|
void |
setTimeFormat(String TimeFormat)
Set Time field format.
|
void |
setTimeKey(String TimeKey)
Set Time field key name.
|
void |
setUnMatchLogKey(String UnMatchLogKey)
Set Unmatched log key
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setUnMatchUpLoadSwitch(Boolean UnMatchUpLoadSwitch)
Set Whether to upload the logs that failed to be parsed.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic ExtractRuleInfo()
public ExtractRuleInfo(ExtractRuleInfo source)
public String getTimeKey()
public void setTimeKey(String TimeKey)
TimeKey - Time field key name. `time_key` and `time_format` must appear in pairs
Note: this field may return `null`, indicating that no valid values can be obtained.public String getTimeFormat()
public void setTimeFormat(String TimeFormat)
TimeFormat - Time field format. For more information, please see the output parameters of the time format description of the `strftime` function in C language
Note: this field may return `null`, indicating that no valid values can be obtained.public String getDelimiter()
public void setDelimiter(String Delimiter)
Delimiter - Delimiter for delimited log, which is valid only if `log_type` is `delimiter_log`
Note: this field may return `null`, indicating that no valid values can be obtained.public String getLogRegex()
public void setLogRegex(String LogRegex)
LogRegex - Full log matching rule, which is valid only if `log_type` is `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.public String getBeginRegex()
public void setBeginRegex(String BeginRegex)
BeginRegex - First-Line matching rule, which is valid only if `log_type` is `multiline_log` or `fullregex_log`
Note: this field may return `null`, indicating that no valid values can be obtained.public String[] getKeys()
public void setKeys(String[] Keys)
Keys - Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if `log_type` is `delimiter_log`. `json_log` logs use the key of JSON itself
Note: this field may return `null`, indicating that no valid values can be obtained.public KeyRegexInfo[] getFilterKeyRegex()
public void setFilterKeyRegex(KeyRegexInfo[] FilterKeyRegex)
FilterKeyRegex - Log keys to be filtered and the corresponding regex
Note: this field may return `null`, indicating that no valid values can be obtained.public Boolean getUnMatchUpLoadSwitch()
public void setUnMatchUpLoadSwitch(Boolean UnMatchUpLoadSwitch)
UnMatchUpLoadSwitch - Whether to upload the logs that failed to be parsed. Valid values: `true`: yes; `false`: no
Note: this field may return `null`, indicating that no valid values can be obtained.public String getUnMatchLogKey()
public void setUnMatchLogKey(String UnMatchLogKey)
UnMatchLogKey - Unmatched log key
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getBacktracking()
public void setBacktracking(Long Backtracking)
Backtracking - Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection)
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getIsGBK()
public void setIsGBK(Long IsGBK)
IsGBK - Whether to be encoded in GBK format. Valid values: `0` (No) and `1` (Yes).
Note: This field may return null, indicating that no valid values can be obtained.public Long getJsonStandard()
public void setJsonStandard(Long JsonStandard)
JsonStandard - Whether to be formatted as JSON (standard). Valid values: `0` (No) and `1` (Yes).
Note: This field may return null, indicating that no valid values can be obtained.public String getProtocol()
public void setProtocol(String Protocol)
Protocol - Syslog protocol. Valid values: `tcp`, `udp`.
This field can be used when you create/modify collection rule configurations.
Note: This field may return null, indicating that no valid values can be obtained.public String getAddress()
public void setAddress(String Address)
Address - Listening address and port specified by the syslog collection. Format: [ip]:[port]. Example: 127.0.0.1:9000.
This field can be used when you create/modify collection rule configurations.
Note: This field may return null, indicating that no valid values can be obtained.public String getParseProtocol()
public void setParseProtocol(String ParseProtocol)
ParseProtocol - `rfc3164`: Resolve logs by using the RFC3164 protocol during the syslog collection.
`rfc5424`: Resolve logs by using the RFC5424 protocol during the syslog collection.
`auto`: Automatically match either the RFC3164 or RFC5424 protocol.
This field can be used when you create/modify collection rule configurations.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.