Create index-patterns from console with Kibana 6.0 or 7+ (v7.0.1)

前端 未结 5 851
面向向阳花
面向向阳花 2021-01-05 07:24

I recently upgraded my ElasticStack instance from 5.5 to 6.0, and it seems that some of the breaking changes of this version has harmed my pipeline. I had a script that, dep

5条回答
  •  情话喂你
    2021-01-05 07:53

    The URL has been changed in version 6.0.0, here is the new URL:

    http://localhost:9200/.kibana/doc/doc:index-pattern:my-index-pattern-name 

    This CURL should work for you:

    curl -XPOST "http://localhost:9200/.kibana/doc/index-pattern:my-index-pattern-name" -H 'Content-Type: application/json' -d'
    {
      "type" : "index-pattern",
      "index-pattern" : {
        "title": "my-index-pattern-name*",
        "timeFieldName": "execution_time"
      }
    }'
    

提交回复
热议问题