FilterAttribute 2025.10.9.21

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

PropertyDescription
Attribute Matching StrategySpecifies the strategy to filter attributes by.
Filter ModeSpecifies the strategy to apply on filtered attributes. Either ‘Remove’ or ‘Retain’ only the matching attributes.
Filtered AttributesA set of attribute names to filter from FlowFiles. Each attribute name is separated by the comma delimiter ‘,’.
Filtered Attributes PatternA regular expression to match names of attributes to filter from FlowFiles.

Relationships

NameDescription
successAll successful FlowFiles are routed to this relationship

Use cases

Retain all FlowFile attributes matching a regular expression
Remove only a specified set of FlowFile attributes