Skip to content

[DOCS] Fingerprint ingest processor#68610

Merged
danhermann merged 4 commits intoelastic:masterfrom
danhermann:docs_for_68415_fingerprint_processor
Feb 9, 2021
Merged

[DOCS] Fingerprint ingest processor#68610
danhermann merged 4 commits intoelastic:masterfrom
danhermann:docs_for_68415_fingerprint_processor

Conversation

@danhermann
Copy link
Copy Markdown
Contributor

@danhermann danhermann commented Feb 5, 2021

Documentation for the processor added in #68415.

Depends on #68415.

@danhermann danhermann added >docs General docs changes :Distributed/Ingest Node Execution or management of Ingest Pipelines v8.0.0 v7.12.0 labels Feb 5, 2021
@danhermann danhermann requested a review from jrodewig February 5, 2021 20:03
@elasticmachine elasticmachine added Team:Docs Meta label for docs team Team:Data Management (obsolete) DO NOT USE. This team no longer exists. labels Feb 5, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

Copy link
Copy Markdown
Contributor

@jrodewig jrodewig left a 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!

Comment on lines +9 to +10
Calculates a hash that can be used for content fingerprinting based on the
content of the specified fields in a document.
Copy link
Copy Markdown
Contributor

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.

Suggested change
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].

Comment on lines +17 to +18
| `fields` | yes | n/a | Array containing the names of the document
fields whose content will be used to compute the fingerprint
Copy link
Copy Markdown
Contributor

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.

Suggested change
| `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.

Comment on lines +20 to +21
| `salt` | no | <none> | Salt value that will be applied to every
fingerprint calculated by this processor
Copy link
Copy Markdown
Contributor

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.

Suggested change
| `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.

Comment on lines +24 to +26
| `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.
Copy link
Copy Markdown
Contributor

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.

Suggested change
| `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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
===== Examples
===== Example

}
----
// TESTRESPONSE[s/\.\.\./"_index":"_index","_id":"_id","_ingest":{"timestamp":$body.docs.0.doc._ingest.timestamp},/]
// NOTCONSOLE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this snippet locally with the changes in #68415. Should be good to remove // NOTCONSOLE once #68415 is merged.

@danhermann
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@danhermann
Copy link
Copy Markdown
Contributor Author

Thanks, @jrodewig! I incorporated your suggestions in f865ba0.

@danhermann danhermann merged commit 761b8ab into elastic:master Feb 9, 2021
@danhermann danhermann deleted the docs_for_68415_fingerprint_processor branch February 9, 2021 12:19
danhermann added a commit to danhermann/elasticsearch that referenced this pull request Mar 16, 2021
danhermann added a commit to danhermann/elasticsearch that referenced this pull request Mar 16, 2021
@jakelandis jakelandis removed the v8.0.0 label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines >docs General docs changes Team:Data Management (obsolete) DO NOT USE. This team no longer exists. Team:Docs Meta label for docs team v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants