Skip to content

Commit 8f66c41

Browse files
docs: add CCS based reindex to docs
1 parent 9854fdc commit 8f66c41

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

docs/changelog/117154.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117154
2+
summary: "Add CCS based reindex to docs"
3+
area: Search
4+
type: bug
5+
issues: []

docs/reference/docs/reindex.asciidoc

+29
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ privilege for the source data stream, index, or alias.
9292
in the `reindex.remote.whitelist` setting of `elasticsearch.yml`. See
9393
<<reindex-from-remote>>.
9494

95+
* If CCS-based reindexing from a remote cluster, you must add the remote cluster setting. See
96+
<<add-remote-clusters>>.
97+
9598
* Automatic data stream creation requires a matching index template with data
9699
stream enabled. See <<set-up-a-data-stream>>.
97100

@@ -1119,6 +1122,32 @@ POST _reindex
11191122
// TEST[s/otherhost:9200/\${host}/]
11201123
// TEST[s/\.\.\.,/"username": "test_admin", "password": "x-pack-test-password",/]
11211124

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+
11221151
[[reindex-ssl]]
11231152
===== Configuring SSL parameters
11241153

0 commit comments

Comments
 (0)