public class ExtractRuleInfo extends AbstractModel
header, skipSign
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 Backtracking data volume under incremental collection pattern, default -1 indicates full collection; other non-negative numbers indicate incremental collection (collect logs backward from the latest position by ${Backtracking} bytes) with a maximum support of 1073741824 (1G).Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getBeginRegex()
Get Line beginning matching rule, valid only if LogType is multiline_log or fullregex_logNote: This field may return null, indicating that no valid values can be obtained.
|
String |
getDelimiter()
Get Delimiter for log type.
|
EventLog[] |
getEventLogRules()
Get Windows event log collection
|
KeyRegexInfo[] |
getFilterKeyRegex()
Get Log filter rule list (previous version), keys to be filtered in the log and their corresponding regex.Note: For LogListener version 2.9.3 and later, it is recommended to use the AdvanceFilterRules configuration for log filtering.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.
|
Long |
getMetadataType()
Get Metadata type.
|
MetaTagInfo[] |
getMetaTags()
Get User-defined metadata, which is required when `MetadataType` is set to `2`.
|
String |
getParseProtocol()
Get `rfc3164`: Resolve logs by using the RFC 3164 protocol during the syslog collection.
|
String |
getPathRegex()
Get Regular expression of the collection configuration path, which is required when `MetadataType` is set to `3`
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getProtocol()
Get Syslog protocol.
|
String |
getTimeFormat()
Get Time field format.
|
String |
getTimeKey()
Get Key name for the time field.
|
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 Backtracking data volume under incremental collection pattern, default -1 indicates full collection; other non-negative numbers indicate incremental collection (collect logs backward from the latest position by ${Backtracking} bytes) with a maximum support of 1073741824 (1G).Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setBeginRegex(String BeginRegex)
Set Line beginning matching rule, valid only if LogType is multiline_log or fullregex_logNote: This field may return null, indicating that no valid values can be obtained.
|
void |
setDelimiter(String Delimiter)
Set Delimiter for log type.
|
void |
setEventLogRules(EventLog[] EventLogRules)
Set Windows event log collection
|
void |
setFilterKeyRegex(KeyRegexInfo[] FilterKeyRegex)
Set Log filter rule list (previous version), keys to be filtered in the log and their corresponding regex.Note: For LogListener version 2.9.3 and later, it is recommended to use the AdvanceFilterRules configuration for log filtering.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.
|
void |
setMetadataType(Long MetadataType)
Set Metadata type.
|
void |
setMetaTags(MetaTagInfo[] MetaTags)
Set User-defined metadata, which is required when `MetadataType` is set to `2`.
|
void |
setParseProtocol(String ParseProtocol)
Set `rfc3164`: Resolve logs by using the RFC 3164 protocol during the syslog collection.
|
void |
setPathRegex(String PathRegex)
Set Regular expression of the collection configuration path, which is required when `MetadataType` is set to `3`
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setProtocol(String Protocol)
Set Syslog protocol.
|
void |
setTimeFormat(String TimeFormat)
Set Time field format.
|
void |
setTimeKey(String TimeKey)
Set Key name for the time field.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ExtractRuleInfo()
public ExtractRuleInfo(ExtractRuleInfo source)
public String getTimeKey()
public void setTimeKey(String TimeKey)
TimeKey
- Key name for the time field. TikeKey and TimeFormat must appear in pairsNote: 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 log type. Valid only when LogType is delimiter_logNote: 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. Valid only if LogType is fullregex_logNote: This field may return null, indicating that no valid values can be obtained.public String getBeginRegex()
public void setBeginRegex(String BeginRegex)
BeginRegex
- Line beginning matching rule, valid only if LogType is multiline_log or fullregex_logNote: 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 discarding the field. Valid only if LogType is delimiter_log. json_log logs use the key of JSON itself. Limited to 100.Note: This field may return null, indicating that no valid values can be obtained.public KeyRegexInfo[] getFilterKeyRegex()
public void setFilterKeyRegex(KeyRegexInfo[] FilterKeyRegex)
FilterKeyRegex
- Log filter rule list (previous version), keys to be filtered in the log and their corresponding regex.Note: For LogListener version 2.9.3 and later, it is recommended to use the AdvanceFilterRules configuration for log filtering.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
- Backtracking data volume under incremental collection pattern, default -1 indicates full collection; other non-negative numbers indicate incremental collection (collect logs backward from the latest position by ${Backtracking} bytes) with a maximum support of 1073741824 (1G).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 or 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 or 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 RFC 3164 protocol during the syslog collection.
`rfc5424`: Resolve logs by using the RFC 5424 protocol during the syslog collection.
`auto`: Automatically match either the RFC 3164 or RFC 5424 protocol.
This field can be used when you create or modify collection rule configurations.
Note: This field may return null, indicating that no valid values can be obtained.public Long getMetadataType()
public void setMetadataType(Long MetadataType)
MetadataType
- Metadata type. Valid values:
0: Do not use metadata.
1: Use machine group metadata.
2: Use user-defined metadata.
3: Use the collection path to extract metadata.public String getPathRegex()
public void setPathRegex(String PathRegex)
PathRegex
- Regular expression of the collection configuration path, which is required when `MetadataType` is set to `3`
Note: This field may return null, indicating that no valid values can be obtained.public MetaTagInfo[] getMetaTags()
public void setMetaTags(MetaTagInfo[] MetaTags)
MetaTags
- User-defined metadata, which is required when `MetadataType` is set to `2`.public EventLog[] getEventLogRules()
public void setEventLogRules(EventLog[] EventLogRules)
EventLogRules
- Windows event log collectionCopyright © 2024. All rights reserved.