[DOC] Add drop processor#5767
Conversation
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
|
@hdhalter I've requested several tech reviews via OpenSearch community Slack channel and AWS OpenSearch Slack channel. No response to date. Who is the SDM for ingest processors for OpenSearch core? The Data Prepper team told me that this isn't their lane. |
|
I can take a look at this once I'm back home on Tuesday. |
@msfroh You've been been more than helpful with tech reviewing the other three ingest processors. We're trying to load balance the content gap reviews, and I don't want you to get caught exclusively on this and the remaining 9-10 ingest processors. Please don't prioritize this while you're OOO. Let us see if we can find someone to share the load. I'll keep you updated. Thank you again for all your help and reviews :) |
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
|
@gaobinlong Please review this processor documentation at your availability. Will you provide examples relevant to OpenSearch users? Thank you for your support! |
| The following is the syntax for the `drop` processor: | ||
|
|
||
| ```json | ||
| { |
There was a problem hiding this comment.
{
"drop": {
"if": "ctx.foo == 'bar'"
}
}
| { | ||
| "user_info": "Sensitive information including credit card" | ||
| } | ||
| ``` |
There was a problem hiding this comment.
The following response shows that the no operation happened, the document with id 1 was not indexed:
{
"_index": "testindex1",
"_id": "1",
"_version": -3,
"result": "noop",
"_shards": {
"total": 0,
"successful": 0,
"failed": 0
}
}There was a problem hiding this comment.
Should this file be removed?
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
|
@gaobinlong Thank you for the examples. I've added them to the doc. Will you approve as the tech reviewer? Thank you. |
There was a problem hiding this comment.
Oh my mad, this file shouldn't be removed, I just saw this change was not related to the drop processor so I thought it shouldn't be in this PR, actually it was a small change for the date processor, so please add this file back, thanks!
This reverts commit 73296f5.
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
|
|
||
| Follow these steps to use the processor in a pipeline. | ||
|
|
||
| **Step 1: Create a pipeline.** |
There was a problem hiding this comment.
Global: I believe that these do not take periods.
| ``` | ||
| {% include copy-curl.html %} | ||
|
|
||
| The following response confirms that the document with ID `1` was not indexed: |
There was a problem hiding this comment.
"with the ID 1" or "with the ID of 1"?
natebower
left a comment
There was a problem hiding this comment.
LGTM with noted comments/changes.
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
* Add drop processor doc to address content gap Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address tech review feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address tech review changes Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Delete _ingest-pipelines/processors/date.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Revert "Delete _ingest-pipelines/processors/date.md" This reverts commit 73296f5. * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update drop.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> --------- Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Co-authored-by: Nathan Bower <nbower@amazon.com> (cherry picked from commit b38ba75) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add drop processor doc to address content gap * Address tech review feedback * Address tech review changes * Delete _ingest-pipelines/processors/date.md * Revert "Delete _ingest-pipelines/processors/date.md" This reverts commit 73296f5. * Update _ingest-pipelines/processors/drop.md * Update _ingest-pipelines/processors/drop.md * Update _ingest-pipelines/processors/drop.md * Update _ingest-pipelines/processors/drop.md * Update _ingest-pipelines/processors/drop.md * Update drop.md --------- (cherry picked from commit b38ba75) Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nathan Bower <nbower@amazon.com>
* Add drop processor doc to address content gap Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address tech review feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address tech review changes Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Delete _ingest-pipelines/processors/date.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Revert "Delete _ingest-pipelines/processors/date.md" This reverts commit 73296f5. * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _ingest-pipelines/processors/drop.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update drop.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> --------- Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Co-authored-by: Nathan Bower <nbower@amazon.com>
Description
Adds drop processor documentation to close content gap
Issues Resolved
#proce
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.