UpdateAttribute can be configured using the hash Expression Language function to digest one or more attributes
Please consider using one the following alternatives: UpdateAttribute
Calculates a hash value for each of the specified attributes using the given algorithm and writes it to an output attribute. Please refer to https://csrc.nist.gov/Projects/Hash-Functions/NIST-Policy-on-Hash-Functions for help to decide which algorithm to use.
attributes, hash, md5, sha, keccak, blake2, cryptography
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 Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Character Set | character_set | UTF-8 |
| The Character Set used to decode the attribute being hashed -- this applies to the incoming data encoding, not the resulting hash encoding. |
Fail when no attributes present | fail_when_empty | true |
| Route to failure when none of the attributes that are configured for hashing are found. If set to false, then flow files that do not contain any of the attributes that are configured for hashing will just pass through to success. |
Hash Algorithm | hash_algorithm | SHA-256 |
| The cryptographic hash algorithm to use. Note that not all of the algorithms available are recommended for use (some are provided for legacy use). There are many things to consider when picking an algorithm; it is recommended to use the most secure algorithm possible. |
Missing attribute policy | missing_attr_policy | Allow missing attributes |
| Policy for how the processor handles attributes that are configured for hashing but are not found in the flowfile. |
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|---|---|
A flowfile attribute key for attribute inspection | Attribute Name | The property name defines the attribute to look for and hash in the incoming flowfile. The property value defines the name to give the generated attribute. Attribute names must be unique. Supports Expression Language: false |
Name | Description |
---|---|
success | Used for flowfiles that have a hash value added |
failure | Used for flowfiles that are missing required attributes |
Name | Description |
---|---|
<Specified Attribute Name per Dynamic Property> | This Processor adds an attribute whose value is the result of hashing the specified attribute. The name of this attribute is specified by the value of the dynamic property. |