FilterAttribute 2.1.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
Filters the attributes of a FlowFile by retaining specified attributes and removing the rest or by removing specified attributes and retaining the rest.
Tags
Attribute Expression Language, attributes, delete, filter, modification, regex, regular expression, remove, retain
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
Properties
Relationships
Name Description
success All successful FlowFiles are routed to this relationship
Use Cases
  • Retain all FlowFile attributes matching a regular expression
    Description
    Retain all FlowFile attributes matching a regular expression
    Configuration
    Set "Filter Mode" to "Retain".
    Set "Attribute Matching Strategy" to "Use regular expression".
    Specify the "Filtered Attributes Pattern", e.g. "my-property|a-prefix[.].*".
    
  • Remove only a specified set of FlowFile attributes
    Description
    Remove only a specified set of FlowFile attributes
    Configuration
    Set "Filter Mode" to "Remove".
    Set "Attribute Matching Strategy" to "Enumerate attributes".
    Specify the set of "Filtered Attributes" using the delimiter comma ',', e.g. "my-property,other,filename".