Could not able to create index-pattern in 6.x

Hi

i am trying to create index-pattern from query, index-pattern got created but no feilds are there in that and it is giving some errors

i used bellow query to create index-pattern in elasticsearch

POST /.kibana/doc/test
{
"type": "index-pattern",
"index-pattern" : {
"title": "test",
"timeFieldName": "post_date"
}
}

and i am getting bellow error
Could not locate that index-pattern (id: test), click here to re-create it

Please help

Try prefixing the document ID with index-pattern:

POST /.kibana/doc/index-pattern:test
{
  "type": "index-pattern",
  "index-pattern": {
    "title": "test",
    "timeFieldName": "post_date"
  }
}
1 Like

Hi @Bargs

Thanks for the reply, it got worked :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.