HashAttribute

Deprecation notice:

UpdateAttribute can be configured using the hash Expression Language function to digest one or more attributes

Please consider using one the following alternatives: UpdateAttribute

Description:

Hashes together the key/value pairs of several flowfile attributes and adds the hash as a new attribute. Optional properties are to be added such that the name of the property is the name of a flowfile attribute to consider and the value of the property is a regular expression that, if matched by the attribute value, will cause that attribute to be used as part of the hash. If the regular expression contains a capturing group, only the value of the capturing group will be used. For a processor which accepts various attributes and generates a cryptographic hash of each, see "CryptographicHashAttribute".

Tags:

attributes, hash

Properties:

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.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Hash Value Attribute KeyHash Value Attribute KeyThe name of the flowfile attribute where the hash value should be stored

Dynamic Properties:

Supports Sensitive Dynamic Properties: No

Dynamic Properties allow the user to specify both the name and value of a property.

NameValueDescription
A flowfile attribute key for attribute inspectionA Regular ExpressionThis regular expression is evaluated against the flowfile attribute values. If the regular expression contains a capturing group, the value of that group will be used when comparing flow file attributes. Otherwise, the original flow file attribute's value will be used if and only if the value matches the given regular expression.
Supports Expression Language: false

Relationships:

NameDescription
successUsed for flowfiles that have a hash value added
failureUsed for flowfiles that are missing required attributes

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
<Hash Value Attribute Key>This Processor adds an attribute whose value is the result of Hashing the existing flowfile attributes. The name of this attribute is specified by the <Hash Value Attribute Key> property.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.