Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace UnifiedAgentParserFilter

Logging parser filter object. Ref: https://docs.fluentd.org/filter/parser

Properties

Optional emitInvalidRecordToError

emitInvalidRecordToError: undefined | false | true

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.

Const filterType

filterType: string = "PARSER_FILTER"

Optional hashValueField

hashValueField: undefined | string

Store the parsed values as a hash value in a field.

Optional injectKeyPrefix

injectKeyPrefix: undefined | string

Store the parsed values with the specified key name prefix.

keyName

keyName: string

The field name in the record to parse.

name

name: string

Unique name for the filter.

parser

Optional removeKeyNameField

removeKeyNameField: undefined | false | true

If true, remove the keyName field when parsing is succeeded.

Optional replaceInvalidSequence

replaceInvalidSequence: undefined | false | true

If true, the invalid string is replaced with safe characters and is re-parsed.

Optional reserveData

reserveData: undefined | false | true

If true, keep the original key-value pair in the parsed result.

Optional reserveTime

reserveTime: undefined | false | true

If true, keep the original event time in the parsed result.

Methods

getDeserializedJsonObj

getJsonObj