LogstashとTalend ESBのインデックスを再インデックス化する必要があります。
手順
-
以下のコマンドを実行し、既存のインデックスをすべて表示します。
curl -XGET 'oldhost9200/_cat/indices'
oldhost
を7.2.xで使用されているElasticsearchクラスターのIPアドレスまたはホスト名に置き換えます。 -
7.2.xで使用されているインデックスから7.3.xで使用されているインデックスにドキュメントをプルするように、リモートクラスターからのLogstashインデックスを再インデックス化します。
curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d' { "source": { "remote": { "host": "http://oldhost:9200" }, "index": "logstash-YYYY.MM.dd" }, "dest": { "index": "logstash-YYYY.MM.dd" } } '
-
6.5.xで使用されているインデックスから7.3.xで使用されているインデックスにドキュメントをプルするように、リモートクラスターからのTalend ESBインデックスを再インデックス化します。
curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d' { "source": { "remote": { "host": "http://oldhost:9200" }, "index": "talendesb-YYYY.MM.dd" }, "dest": { "index": "talendesb-YYYY.MM.dd" } } '
注:logstash-YYYY.MM.dd
とtalendesb-YYYY.MM.dd
インデックスをすべて1つずつ移行するか、移行するインデックスのみを選択してください。ⓘ対象製品:
Big Data Platform
インデックス名にlogstash-*を指定すると、以下のようなエラーが返されます:
ⓘ対象製品:
Data Fabric
Data Management Platform
Data Services Platform
MDM Platform
Real-Time Big Data Platform
インデックス名にlogstash-*またはtalendesb-*を指定すると、以下のようなエラーが返されます:
"failures" : [ { "index" : "logstash-*", "type" : "xxxxxxxx", "id" : "xxxxxxxxxxxxxx", "cause" : { "type" : "invalid_index_name_exception", "reason" : "Invalid index name [logstash-*], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]", "index_uuid" : "_na_", "index" : "logstash-*" }, "status" : 400 }, { "index" : "logstash-*", "type" : "xxxxxx", "id" : "xxxxxxxxxxxxxxx", "cause" : { "type" : "invalid_index_name_exception", "reason" : "Invalid index name [logstash-*], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]", "index_uuid" : "_na_", "index" : "logstash-*" }, "status" : 400 } ]