@@ -92,6 +92,9 @@ privilege for the source data stream, index, or alias.
92
92
in the `reindex.remote.whitelist` setting of `elasticsearch.yml`. See
93
93
<<reindex-from-remote>>.
94
94
95
+ * If CCS-based reindexing from a remote cluster, you must add the remote cluster setting. See
96
+ <<add-remote-clusters>>.
97
+
95
98
* Automatic data stream creation requires a matching index template with data
96
99
stream enabled. See <<set-up-a-data-stream>>.
97
100
@@ -1119,6 +1122,32 @@ POST _reindex
1119
1122
// TEST[s/otherhost:9200/\${host}/]
1120
1123
// TEST[s/\.\.\.,/"username": "test_admin", "password": "x-pack-test-password",/]
1121
1124
1125
+ [[CCS-based-reindex-from-remote]]
1126
+ ==== CCS based reindex from remote
1127
+
1128
+ Reindex supports CCS based reindexing from a remote Elasticsearch cluster:
1129
+
1130
+ [source,console]
1131
+ --------------------------------------------------
1132
+ POST _reindex
1133
+ {
1134
+ "source": {
1135
+ "index": "cluster_one:my-index-000001"
1136
+ },
1137
+ "dest": {
1138
+ "index": "my-new-index-000001"
1139
+ }
1140
+ }
1141
+ --------------------------------------------------
1142
+ // TEST[setup:my_index_big]
1143
+
1144
+ The `index` parameter must be specified with the remote cluster name and the index name, separated by
1145
+ a colon (e.g., cluster_one:my-index-000001).
1146
+ Additionally, you must configure the remote cluster in advance and retrieve the remote cluster name.
1147
+ For more details, refer to the reference for <<add-remote-clusters>>.
1148
+
1149
+ NOTE: Needs v8.12.0 or later on the reindexing cluster.
1150
+
1122
1151
[[reindex-ssl]]
1123
1152
===== Configuring SSL parameters
1124
1153
0 commit comments