Skip to content

Commit 073e48e

Browse files
author
Zhanibek Adilbekov
authored
feat(out_es): update write_operation docs (#690)
* feat: write_operation docs taken from https://github.com/uken/fluent-plugin-elasticsearch/blob/master/README.md#write_operation Signed-off-by: Zhanibek Adilbekov <[email protected]> * fix(out_es): update docs according to feature PR comments Signed-off-by: Zhanibek Adilbekov <[email protected]>
1 parent 9cada94 commit 073e48e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pipeline/outputs/elasticsearch.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The **es** output plugin, allows to ingest your records into an [Elasticsearch](
3636
| Tag\_Key | When Include\_Tag\_Key is enabled, this property defines the key name for the tag. | \_flb-key |
3737
| Generate\_ID | When enabled, generate `_id` for outgoing records. This prevents duplicate records when retrying ES. | Off |
3838
| Id\_Key | If set, `_id` will be the value of the key from incoming record and `Generate_ID` option is ignored. | |
39-
| Write\_Operation | The write\_operation can be any of: index (default), create, update, upsert. | index |
39+
| Write\_Operation | The write\_operation can be any of: create (default), index, update, upsert. | create |
4040
| Replace\_Dots | When enabled, replace field name dots with underscore, required by Elasticsearch 2.0-2.3. | Off |
4141
| Trace\_Output | When enabled print the elasticsearch API calls to stdout \(for diag only\) | Off |
4242
| Trace\_Error | When enabled print the elasticsearch API calls to stdout when elasticsearch returns an error \(for diag only\) | Off |
@@ -56,12 +56,12 @@ The write\_operation can be any of:
5656

5757
| Operation | Description |
5858
| ------------- | ----------- |
59-
| index (default) | new data is added while existing data (based on its id) is replaced (reindexed).|
60-
| create | adds new data - if the data already exists (based on its id), the op is skipped.|
61-
| update | updates existing data (based on its id). If no data is found, the op is skipped.|
62-
| upsert | known as merge or insert if the data does not exist, updates if the data exists (based on its id).|
59+
| create (default) | adds new data - if the data already exists (based on its id), the op is skipped.|
60+
| index | new data is added while existing data (based on its id) is replaced (reindexed).|
61+
| update | updates existing data (based on its id). If no data is found, the op is skipped.|
62+
| upsert | known as merge or insert if the data does not exist, updates if the data exists (based on its id).|
6363

64-
**Please note, id is required in create, update, and upsert scenario. Without id, the message will be dropped.**
64+
**Please note, `Id_Key` or `Generate_ID` is required in update, and upsert scenario.**
6565

6666
## Getting Started
6767

0 commit comments

Comments
 (0)