【问题标题】:How to create Index pattern using API and Index Name如何使用 API 和索引名称创建索引模式
【发布时间】:2023-04-04 04:17:01
【问题描述】:

我通过 Elasticsearch API 创建了索引,为了创建可视化,我需要该特定索引的索引模式 ID。有没有可能使用 API 创建索引模式的方法

【问题讨论】:

    标签: python elasticsearch kibana elastic-stack elk


    【解决方案1】:

    是的,您可以通过Saved Object API 创建索引模式。

    $ curl -X POST <kibana-host>:<port>/api/saved_objects/index-pattern/index-pattern-id  -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
    {
      "attributes": {
        "title": "my-index-*"
      }
    }'
    

    【讨论】:

      猜你喜欢
      • 2022-08-19
      • 2023-01-15
      • 2021-07-27
      • 1970-01-01
      • 2013-08-20
      • 2017-07-31
      • 2022-07-06
      • 1970-01-01
      • 2020-04-26
      相关资源
      最近更新 更多