FluentD key-Value Parser¶
A FluentD filter plugin to parse FluentD events that folollow key-value format messages and extract attributes defined in the messages.
Installation¶
And then execute:
Or install it yourself as:
Configurations¶
| Configuration Ite | Description |
|---|---|
| key | The key that contains the message to be parsed. The default value is log |
| remove_key | A boolean value to remove the message key after parsing. Default is false |
| filter_out_lines_without_keys | A boolean value that indicates whether to remove or keep events with no key-value items. Default is false |
| use_regex | A boolean value to indicate whether to use regex for parsing the messages or not. The default is false. |
| remove_prefix | A regex to remove a prefix of the message and to exclude it from being parsed |
| keys_delimiter | The Key delimiter character (how the keys are separated). The default is space. |
| kv_delimiter_char | The Key-Value delimiter. The default is = |
| filtered_keys | List of keys that will be whitelisted |
| filtered_keys_regex | A regex to white list extracted keys |
| filtered_keys_delimiter | The character used to separate keys defined in filtered_keys |
Configuration Examples¶
Filter log message and whitelist a specific keys.
Filter log message and whitelist keys that match a given regex.
Filter log message and whitelist keys that match a given regex or are whitelisted .