This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new cbc1536362 [Feature][Connector-V2] Support Elasticsearch 9 in the 
Elasticsearch connector (#13090)
cbc1536362 is described below

commit cbc15363625b783b801fa4b105bfdbb41effbcf7
Author: Sepuri Sai Krishna <[email protected]>
AuthorDate: Fri Nov 13 08:43:13 2026 +0000

    [Feature][Connector-V2] Support Elasticsearch 9 in the Elasticsearch 
connector (#13090)
---
 docs/en/connectors/sink/Elasticsearch.md           |   4 +-
 docs/en/connectors/source/Elasticsearch.md         |   2 +-
 docs/zh/connectors/sink/Elasticsearch.md           |   2 +-
 docs/zh/connectors/source/Elasticsearch.md         |   2 +-
 .../constant/ElasticsearchVersion.java             |   3 +-
 .../serialize/ElasticsearchRowSerializerTest.java  |  34 ++++++
 .../connector/elasticsearch/Elasticsearch9IT.java  | 134 +++++++++++++++++++++
 .../elasticsearch9_source_with_pit.conf            |  53 ++++++++
 .../elasticsearch9_source_with_scroll.conf         |  51 ++++++++
 .../elasticsearch9_source_with_sql.conf            |  51 ++++++++
 .../fakesource_to_elasticsearch9.conf              |  61 ++++++++++
 11 files changed, 391 insertions(+), 6 deletions(-)

diff --git a/docs/en/connectors/sink/Elasticsearch.md 
b/docs/en/connectors/sink/Elasticsearch.md
index 1087d34578..0b41592226 100644
--- a/docs/en/connectors/sink/Elasticsearch.md
+++ b/docs/en/connectors/sink/Elasticsearch.md
@@ -10,7 +10,7 @@ import ChangeLog from 
'../changelog/connector-elasticsearch.md';
 
 ## Description
 
-Output data to Elasticsearch or OpenSearch-compatible clusters. The connector 
uses the Bulk API to buffer documents and flush them in batches. Document IDs 
are derived from the primary key columns, which makes the sink suitable for CDC 
workloads that need update and delete semantics. Elasticsearch `2.x` through 
`8.x` is supported.
+Output data to Elasticsearch or OpenSearch-compatible clusters. The connector 
uses the Bulk API to buffer documents and flush them in batches. Document IDs 
are derived from the primary key columns, which makes the sink suitable for CDC 
workloads that need update and delete semantics. Elasticsearch `2.x` through 
`9.x` is supported.
 
 ## Key features
 
@@ -23,7 +23,7 @@ Output data to Elasticsearch or OpenSearch-compatible 
clusters. The connector us
 
 Engine Supported
 
-* supported  `ElasticSearch version is >= 2.x and <= 8.x`
+* supported  `ElasticSearch version is >= 2.x and <= 9.x`
 
 :::
 
diff --git a/docs/en/connectors/source/Elasticsearch.md 
b/docs/en/connectors/source/Elasticsearch.md
index 2adb3a7895..19222aa860 100644
--- a/docs/en/connectors/source/Elasticsearch.md
+++ b/docs/en/connectors/source/Elasticsearch.md
@@ -8,7 +8,7 @@ import ChangeLog from '../changelog/connector-elasticsearch.md';
 
 Used to read data from Elasticsearch.
 
-support version >= 2.x and <= 8.x.
+support version >= 2.x and <= 9.x.
 
 ## Key features
 
diff --git a/docs/zh/connectors/sink/Elasticsearch.md 
b/docs/zh/connectors/sink/Elasticsearch.md
index d82a44b7dd..9597f4a2ff 100644
--- a/docs/zh/connectors/sink/Elasticsearch.md
+++ b/docs/zh/connectors/sink/Elasticsearch.md
@@ -17,7 +17,7 @@ import ChangeLog from 
'../changelog/connector-elasticsearch.md';
 
 引擎支持
 
-* 支持  `ElasticSearch 版本 >= 2.x 并且 <= 8.x`
+* 支持  `ElasticSearch 版本 >= 2.x 并且 <= 9.x`
 
 :::
 
diff --git a/docs/zh/connectors/source/Elasticsearch.md 
b/docs/zh/connectors/source/Elasticsearch.md
index 21ac404334..099a1055f5 100644
--- a/docs/zh/connectors/source/Elasticsearch.md
+++ b/docs/zh/connectors/source/Elasticsearch.md
@@ -6,7 +6,7 @@ import ChangeLog from '../changelog/connector-elasticsearch.md';
 
 ## 简介
 
-支持读取 Elasticsearch2.x 版本和 8.x 版本之间的数据
+支持读取 Elasticsearch2.x 版本和 9.x 版本之间的数据
 
 ## 主要特性
 
diff --git 
a/seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/constant/ElasticsearchVersion.java
 
b/seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/constant/ElasticsearchVersion.java
index 65ca059ec2..a52581f681 100644
--- 
a/seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/constant/ElasticsearchVersion.java
+++ 
b/seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/constant/ElasticsearchVersion.java
@@ -25,7 +25,8 @@ public enum ElasticsearchVersion {
     ES5(5),
     ES6(6),
     ES7(7),
-    ES8(8);
+    ES8(8),
+    ES9(9);
 
     private int version;
 
diff --git 
a/seatunnel-connectors-v2/connector-elasticsearch/src/test/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/ElasticsearchRowSerializerTest.java
 
b/seatunnel-connectors-v2/connector-elasticsearch/src/test/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/ElasticsearchRowSerializerTest.java
index 6f95a3706d..464e4a7bba 100644
--- 
a/seatunnel-connectors-v2/connector-elasticsearch/src/test/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/ElasticsearchRowSerializerTest.java
+++ 
b/seatunnel-connectors-v2/connector-elasticsearch/src/test/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/ElasticsearchRowSerializerTest.java
@@ -214,4 +214,38 @@ public class ElasticsearchRowSerializerTest {
                 result.contains("\"ts\":\"2023-01-02T03:04:05\""),
                 "LocalDateTime field should be formatted with ISO-8601 'T' 
separator");
     }
+
+    @Test
+    public void testSerializeForElasticsearch9() {
+        String index = "st_index";
+        Map<String, Object> confMap = new HashMap<>();
+        confMap.put(ElasticsearchSinkOptions.INDEX.key(), index);
+        confMap.put(ElasticsearchSinkOptions.PRIMARY_KEYS.key(), 
Arrays.asList("id"));
+        // Elasticsearch 9 rejects a bulk action that carries a type, so it 
must not be sent.
+        confMap.put(ElasticsearchSinkOptions.INDEX_TYPE.key(), "st");
+
+        ReadonlyConfig pluginConf = ReadonlyConfig.fromMap(confMap);
+        ElasticsearchClusterInfo clusterInfo =
+                
ElasticsearchClusterInfo.builder().clusterVersion("9.5.5").build();
+        IndexInfo indexInfo = new IndexInfo(index, pluginConf);
+        SeaTunnelRowType schema =
+                new SeaTunnelRowType(
+                        new String[] {"id", "name"},
+                        new SeaTunnelDataType[] {STRING_TYPE, STRING_TYPE});
+
+        final ElasticsearchRowSerializer serializer =
+                new ElasticsearchRowSerializer(clusterInfo, indexInfo, schema);
+
+        SeaTunnelRow row = new SeaTunnelRow(new Object[] {"0001", "jack"});
+        row.setRowKind(RowKind.INSERT);
+        Assertions.assertEquals(
+                "{ \"update\" :{\"_index\":\"st_index\",\"_id\":\"0001\"} }\n"
+                        + "{ \"doc\" :{\"name\":\"jack\",\"id\":\"0001\"}, 
\"doc_as_upsert\" : true }",
+                serializer.serializeRow(row));
+
+        row.setRowKind(RowKind.DELETE);
+        Assertions.assertEquals(
+                "{ \"delete\" :{\"_index\":\"st_index\",\"_id\":\"0001\"} }",
+                serializer.serializeRow(row));
+    }
 }
diff --git 
a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/java/org/apache/seatunnel/e2e/connector/elasticsearch/Elasticsearch9IT.java
 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/java/org/apache/seatunnel/e2e/connector/elasticsearch/Elasticsearch9IT.java
new file mode 100644
index 0000000000..46909381fa
--- /dev/null
+++ 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/java/org/apache/seatunnel/e2e/connector/elasticsearch/Elasticsearch9IT.java
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.e2e.connector.elasticsearch;
+
+import org.apache.seatunnel.shade.com.google.common.collect.Lists;
+import org.apache.seatunnel.shade.com.google.common.collect.Maps;
+
+import org.apache.seatunnel.api.configuration.ReadonlyConfig;
+import 
org.apache.seatunnel.connectors.seatunnel.elasticsearch.client.EsRestClient;
+import 
org.apache.seatunnel.connectors.seatunnel.elasticsearch.dto.source.ScrollResult;
+import org.apache.seatunnel.e2e.common.TestResource;
+import org.apache.seatunnel.e2e.common.TestSuiteBase;
+import org.apache.seatunnel.e2e.common.container.TestContainer;
+
+import org.awaitility.Awaitility;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.TestTemplate;
+import org.testcontainers.containers.Container;
+import org.testcontainers.containers.output.Slf4jLogConsumer;
+import org.testcontainers.elasticsearch.ElasticsearchContainer;
+import org.testcontainers.lifecycle.Startables;
+import org.testcontainers.utility.DockerImageName;
+import org.testcontainers.utility.DockerLoggerFactory;
+
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.TreeMap;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Stream;
+
+/** Runs the sink and every search API of the connector against an 
Elasticsearch 9 cluster. */
+public class Elasticsearch9IT extends TestSuiteBase implements TestResource {
+
+    private static final String IMAGE = "elasticsearch:9.5.5";
+    private static final String INDEX = "st_index_es9";
+
+    private ElasticsearchContainer container;
+    private EsRestClient esRestClient;
+
+    @BeforeAll
+    @Override
+    public void startUp() throws Exception {
+        container =
+                new ElasticsearchContainer(
+                                DockerImageName.parse(IMAGE)
+                                        .asCompatibleSubstituteFor(
+                                                
"docker.elastic.co/elasticsearch/elasticsearch"))
+                        .withNetwork(NETWORK)
+                        
.withEnv("cluster.routing.allocation.disk.threshold_enabled", "false")
+                        .withNetworkAliases("elasticsearch9")
+                        .withPassword("elasticsearch")
+                        .withStartupAttempts(5)
+                        .withStartupTimeout(Duration.ofMinutes(5))
+                        .withLogConsumer(
+                                new 
Slf4jLogConsumer(DockerLoggerFactory.getLogger(IMAGE)));
+        Startables.deepStart(Stream.of(container)).join();
+
+        Map<String, Object> configMap = new HashMap<>();
+        configMap.put("hosts", Lists.newArrayList("https://"; + 
container.getHttpHostAddress()));
+        configMap.put("username", "elastic");
+        configMap.put("password", "elasticsearch");
+        configMap.put("tls_verify_certificate", false);
+        configMap.put("tls_verify_hostname", false);
+        esRestClient = 
EsRestClient.createInstance(ReadonlyConfig.fromMap(configMap));
+    }
+
+    @AfterAll
+    @Override
+    public void tearDown() {
+        if (esRestClient != null) {
+            esRestClient.close();
+        }
+        if (container != null) {
+            container.close();
+        }
+    }
+
+    @TestTemplate
+    public void testSinkAndSearchApis(TestContainer testContainer) throws 
Exception {
+        // Start each engine without the index, so the documents checked below 
come from this run.
+        if (esRestClient.checkIndexExist(INDEX)) {
+            esRestClient.dropIndex(INDEX);
+        }
+        assertJobSucceeds(testContainer, 
"/elasticsearch/fakesource_to_elasticsearch9.conf");
+
+        // The sink applied the insert, update and delete rows by primary key. 
Poll, because
+        // the written documents become searchable only after the next index 
refresh.
+        Map<String, Object> expected = new TreeMap<>();
+        expected.put("1", "a");
+        expected.put("2", "b2");
+        Awaitility.await()
+                .atMost(60, TimeUnit.SECONDS)
+                .pollInterval(1, TimeUnit.SECONDS)
+                .untilAsserted(() -> Assertions.assertEquals(expected, 
readNamesById()));
+
+        assertJobSucceeds(testContainer, 
"/elasticsearch/elasticsearch9_source_with_scroll.conf");
+        assertJobSucceeds(testContainer, 
"/elasticsearch/elasticsearch9_source_with_pit.conf");
+        assertJobSucceeds(testContainer, 
"/elasticsearch/elasticsearch9_source_with_sql.conf");
+    }
+
+    private Map<String, Object> readNamesById() {
+        Map<String, Object> query = new HashMap<>();
+        query.put("match_all", Maps.newHashMap());
+        ScrollResult result =
+                esRestClient.searchByScroll(INDEX, Arrays.asList("id", 
"name"), query, "1m", 100);
+        Map<String, Object> names = new TreeMap<>();
+        result.getDocs().forEach(doc -> names.put(doc.get("_id").toString(), 
doc.get("name")));
+        return names;
+    }
+
+    private void assertJobSucceeds(TestContainer testContainer, String config) 
throws Exception {
+        Container.ExecResult execResult = testContainer.executeJob(config);
+        Assertions.assertEquals(0, execResult.getExitCode(), 
execResult.getStderr());
+    }
+}
diff --git 
a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_pit.conf
 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_pit.conf
new file mode 100644
index 0000000000..66a1041b0f
--- /dev/null
+++ 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_pit.conf
@@ -0,0 +1,53 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  Elasticsearch {
+    plugin_output = "es"
+    hosts = ["https://elasticsearch9:9200";]
+    username = "elastic"
+    password = "elasticsearch"
+    tls_verify_certificate = false
+    tls_verify_hostname = false
+    index = "st_index_es9"
+    source = ["id", "name", "score"]
+    search_api_type = "PIT"
+    pit_batch_size = 1
+    slice_max = 2
+  }
+}
+
+sink {
+  Assert {
+    plugin_input = "es"
+    rules {
+      row_rules = [
+        { rule_type = MIN_ROW, rule_value = 2 },
+        { rule_type = MAX_ROW, rule_value = 2 }
+      ]
+      field_rules = [
+        { field_name = id, field_type = bigint, field_value = [{ rule_type = 
NOT_NULL }] },
+        { field_name = name, field_type = string, field_value = [{ rule_type = 
NOT_NULL }] }
+      ]
+    }
+  }
+}
diff --git 
a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_scroll.conf
 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_scroll.conf
new file mode 100644
index 0000000000..0db3bc8c22
--- /dev/null
+++ 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_scroll.conf
@@ -0,0 +1,51 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  Elasticsearch {
+    plugin_output = "es"
+    hosts = ["https://elasticsearch9:9200";]
+    username = "elastic"
+    password = "elasticsearch"
+    tls_verify_certificate = false
+    tls_verify_hostname = false
+    index = "st_index_es9"
+    source = ["id", "name", "score"]
+    search_api_type = "SCROLL"
+  }
+}
+
+sink {
+  Assert {
+    plugin_input = "es"
+    rules {
+      row_rules = [
+        { rule_type = MIN_ROW, rule_value = 2 },
+        { rule_type = MAX_ROW, rule_value = 2 }
+      ]
+      field_rules = [
+        { field_name = id, field_type = bigint, field_value = [{ rule_type = 
NOT_NULL }] },
+        { field_name = name, field_type = string, field_value = [{ rule_type = 
NOT_NULL }] }
+      ]
+    }
+  }
+}
diff --git 
a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_sql.conf
 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_sql.conf
new file mode 100644
index 0000000000..dadbb69870
--- /dev/null
+++ 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/elasticsearch9_source_with_sql.conf
@@ -0,0 +1,51 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  Elasticsearch {
+    plugin_output = "es"
+    hosts = ["https://elasticsearch9:9200";]
+    username = "elastic"
+    password = "elasticsearch"
+    tls_verify_certificate = false
+    tls_verify_hostname = false
+    index = "st_index_es9"
+    sql_query = "select id, name, score from st_index_es9 where id >= 1"
+    search_type = "SQL"
+  }
+}
+
+sink {
+  Assert {
+    plugin_input = "es"
+    rules {
+      row_rules = [
+        { rule_type = MIN_ROW, rule_value = 2 },
+        { rule_type = MAX_ROW, rule_value = 2 }
+      ]
+      field_rules = [
+        { field_name = id, field_type = bigint, field_value = [{ rule_type = 
NOT_NULL }] },
+        { field_name = name, field_type = string, field_value = [{ rule_type = 
NOT_NULL }] }
+      ]
+    }
+  }
+}
diff --git 
a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/fakesource_to_elasticsearch9.conf
 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/fakesource_to_elasticsearch9.conf
new file mode 100644
index 0000000000..06d19c540f
--- /dev/null
+++ 
b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-elasticsearch-e2e/src/test/resources/elasticsearch/fakesource_to_elasticsearch9.conf
@@ -0,0 +1,61 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+env {
+  parallelism = 1
+  job.mode = "BATCH"
+}
+
+source {
+  FakeSource {
+    plugin_output = "fake"
+    schema = {
+      table = "st_index_es9"
+      fields {
+        id = bigint
+        name = string
+        score = double
+      }
+      primaryKey {
+        name = id
+        columnNames = [id]
+      }
+    }
+    rows = [
+      { kind = INSERT, fields = [1, "a", 1.5] },
+      { kind = INSERT, fields = [2, "b", 2.5] },
+      { kind = INSERT, fields = [3, "c", 3.5] },
+      { kind = UPDATE_AFTER, fields = [2, "b2", 2.75] },
+      { kind = DELETE, fields = [3, "c", 3.5] }
+    ]
+  }
+}
+
+sink {
+  Elasticsearch {
+    plugin_input = "fake"
+    hosts = ["https://elasticsearch9:9200";]
+    username = "elastic"
+    password = "elasticsearch"
+    tls_verify_certificate = false
+    tls_verify_hostname = false
+    index = "st_index_es9"
+    primary_keys = ["id"]
+    schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
+    data_save_mode = "DROP_DATA"
+  }
+}

Reply via email to