Skip to content

Conversation

@danhermann
Copy link
Contributor

@danhermann danhermann commented Feb 5, 2021

Documentation for the processor added in #68415.

Depends on #68415.

@danhermann danhermann added >docs General docs changes :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP 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 Meta label for data/management team labels Feb 5, 2021
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

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

Copy link
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
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
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
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
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
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
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
Contributor Author

@elasticmachine update branch

@danhermann
Copy link
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

:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >docs General docs changes Team:Data Management Meta label for data/management team 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