Filters the attributes of a FlowFile by retaining specified attributes and removing the rest or by removing specified attributes and retaining the rest.
attributes, modification, filter, retain, remove, delete, regex, regular expression, Attribute Expression Language
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
| Display Name | API Name | Default Value | Allowable Values | Description |
|---|---|---|---|---|
| Filter Mode | Filter Mode | Retain |
| Specifies the strategy to apply on filtered attributes. Either 'Remove' or 'Retain' only the matching attributes. |
| Attribute Matching Strategy | Attribute Matching Strategy | Enumerate attributes |
| Specifies the strategy to filter attributes by. |
| Filtered Attributes | Filtered Attributes | A set of attribute names to filter from FlowFiles. Each attribute name is separated by the comma delimiter ','. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Attribute Matching Strategy] Property has a value of "Enumerate attributes". | ||
| Filtered Attributes Pattern | Filtered Attributes Pattern | A regular expression to match names of attributes to filter from FlowFiles. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Attribute Matching Strategy] Property has a value of "Use regular expression". |
| Name | Description |
|---|---|
| success | All successful FlowFiles are routed to this relationship |