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


(Rohit Raghoji) #1

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


(Matt Bargar) #2

Try prefixing the document ID with index-pattern:

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

(Rohit Raghoji) #3

Hi @Bargs

Thanks for the reply, it got worked :slight_smile:


(system) #4

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