在弹性搜索集群之间移动数据

发布于 2025-01-14 17:40:15 字数 134 浏览 3 评论 0 原文

我是弹性搜索的新手。我正在尝试创建一个快照,以便从部署在 Kubernetes 集群上的 ELK 迁移到 opensearch 服务,但我不想仅对整个集群进行快照,仅对某些索引进行快照,请提供有关如何将数据导出到存储服务并导入的任何指示在我的目标集群中?

I am new to elasticsearch. I'm trying to create a snapshot for migration from ELK deployed on my Kubernetes cluster to opensearch service, but I don't want to snapshot the whole cluster only some indices, any pointers please on how to export data to storage service and import it in my destination clusters?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟柳画桥 2025-01-21 17:40:15

快照支持指定索引,如下

PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true
{
  "indices": "index_1,index_2",
  "ignore_unavailable": true,
  "include_global_state": false,
  "metadata": {
    "taken_by": "user123",
    "taken_because": "backup before upgrading"
  }
}

https://www.elastic.co/guide/en/elasticsearch/reference/8.1/create-snapshot-api.html#create-snapshot-api-example

Snapshot supports the specified index as below

PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true
{
  "indices": "index_1,index_2",
  "ignore_unavailable": true,
  "include_global_state": false,
  "metadata": {
    "taken_by": "user123",
    "taken_because": "backup before upgrading"
  }
}

https://www.elastic.co/guide/en/elasticsearch/reference/8.1/create-snapshot-api.html#create-snapshot-api-example

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文