public static class UnifiedAgentParserFilter.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UnifiedAgentParserFilter |
build() |
UnifiedAgentParserFilter.Builder |
copy(UnifiedAgentParserFilter model) |
UnifiedAgentParserFilter.Builder |
emitInvalidRecordToError(Boolean emitInvalidRecordToError)
If true, emit invalid record to @ERROR label.
|
UnifiedAgentParserFilter.Builder |
hashValueField(String hashValueField)
Store the parsed values as a hash value in a field.
|
UnifiedAgentParserFilter.Builder |
injectKeyPrefix(String injectKeyPrefix)
Store the parsed values with the specified key name prefix.
|
UnifiedAgentParserFilter.Builder |
keyName(String keyName)
The field name in the record to parse.
|
UnifiedAgentParserFilter.Builder |
name(String name) |
UnifiedAgentParserFilter.Builder |
parser(UnifiedAgentParser parser) |
UnifiedAgentParserFilter.Builder |
removeKeyNameField(Boolean removeKeyNameField)
If true, remove the keyName field when parsing is succeeded.
|
UnifiedAgentParserFilter.Builder |
replaceInvalidSequence(Boolean replaceInvalidSequence)
If true, the invalid string is replaced with safe characters and is re-parsed.
|
UnifiedAgentParserFilter.Builder |
reserveData(Boolean reserveData)
If true, keep the original key-value pair in the parsed result.
|
UnifiedAgentParserFilter.Builder |
reserveTime(Boolean reserveTime)
If true, keep the original event time in the parsed result.
|
public UnifiedAgentParserFilter.Builder name(String name)
public UnifiedAgentParserFilter.Builder parser(UnifiedAgentParser parser)
public UnifiedAgentParserFilter.Builder keyName(String keyName)
The field name in the record to parse.
keyName
- the value to setpublic UnifiedAgentParserFilter.Builder reserveTime(Boolean reserveTime)
If true, keep the original event time in the parsed result.
reserveTime
- the value to setpublic UnifiedAgentParserFilter.Builder reserveData(Boolean reserveData)
If true, keep the original key-value pair in the parsed result.
reserveData
- the value to setpublic UnifiedAgentParserFilter.Builder removeKeyNameField(Boolean removeKeyNameField)
If true, remove the keyName field when parsing is succeeded.
removeKeyNameField
- the value to setpublic UnifiedAgentParserFilter.Builder replaceInvalidSequence(Boolean replaceInvalidSequence)
If true, the invalid string is replaced with safe characters and is re-parsed.
replaceInvalidSequence
- the value to setpublic UnifiedAgentParserFilter.Builder injectKeyPrefix(String injectKeyPrefix)
Store the parsed values with the specified key name prefix.
injectKeyPrefix
- the value to setpublic UnifiedAgentParserFilter.Builder hashValueField(String hashValueField)
Store the parsed values as a hash value in a field.
hashValueField
- the value to setpublic UnifiedAgentParserFilter.Builder emitInvalidRecordToError(Boolean emitInvalidRecordToError)
If true, emit invalid record to @ERROR label. Invalid cases are: 1) key does not exist; 2) the format does not match; or 3) an unexpected error. You can rescue unexpected format logs in the @ERROR lable. If you want to ignore these errors, set this to false.
emitInvalidRecordToError
- the value to setpublic UnifiedAgentParserFilter build()
public UnifiedAgentParserFilter.Builder copy(UnifiedAgentParserFilter model)
Copyright © 2016–2024. All rights reserved.