-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Fingerprint ingest processor #68610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Fingerprint ingest processor #68610
Conversation
|
Pinging @elastic/es-docs (Team:Docs) |
|
Pinging @elastic/es-core-features (Team:Core/Features) |
jrodewig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I left a few minor nits but nothing blocking. Feel free to disregard if wanted. Thanks @danhermann!
| Calculates a hash that can be used for content fingerprinting based on the | ||
| content of the specified fields in a document. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I'd split this into two sentences for clarity.
| Calculates a hash that can be used for content fingerprinting based on the | |
| content of the specified fields in a document. | |
| Computes a hash of the document's content. You can use this hash for | |
| {wikipedia}/Fingerprint_(computing)[content fingerprinting]. |
| | `fields` | yes | n/a | Array containing the names of the document | ||
| fields whose content will be used to compute the fingerprint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd clarify "content" here as we discussed offline. I'd also add a period for consistency.
| | `fields` | yes | n/a | Array containing the names of the document | |
| fields whose content will be used to compute the fingerprint | |
| | `fields` | yes | n/a | Array of fields to include in | |
| the fingerprint. For objects, the processor hashes both the field key and | |
| value. For other fields, the processor hashes only the field value. |
| | `salt` | no | <none> | Salt value that will be applied to every | ||
| fingerprint calculated by this processor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I'd add a link and a period.
| | `salt` | no | <none> | Salt value that will be applied to every | |
| fingerprint calculated by this processor | |
| | `salt` | no | <none> | | |
| {wikipedia}/Salt_(cryptography)[Salt value] for the hash function. |
| | `ignore_missing` | no | `false` | If true, any missing elements in `fields` | ||
| will be ignored when computing the fingerprint. If all fields are missing, the processor | ||
| silently exits without modifying the document. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: I'd make true a literal and reword the first sentence for active voice.
| | `ignore_missing` | no | `false` | If true, any missing elements in `fields` | |
| will be ignored when computing the fingerprint. If all fields are missing, the processor | |
| silently exits without modifying the document. | |
| | `ignore_missing` | no | `false` | If `true`, the processor | |
| ignores any missing `fields`. If all fields are missing, the processor silently | |
| exits without modifying the document. |
|
|
||
| [discrete] | ||
| [[fingerprint-processor-ex]] | ||
| ===== Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit
| ===== Examples | |
| ===== Example |
| } | ||
| ---- | ||
| // TESTRESPONSE[s/\.\.\./"_index":"_index","_id":"_id","_ingest":{"timestamp":$body.docs.0.doc._ingest.timestamp},/] | ||
| // NOTCONSOLE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@elasticmachine update branch |
Documentation for the processor added in #68415.
Depends on #68415.