How can I create index pattern from console?

Hi. I try create new index pattern in Kibana 5.6 from console.
curl -XPOST -u AdminUser "http://URL:PORT/.kibana/doc/index-pattern:NEW-index-pattern-" -H 'Content-Type: application/json' -d'
{
"type" : "index-pattern",
"index-pattern" : {
"title": "NEW-index-pattern-
",
"timeFieldName": "Date"
}
}'
But in don't work. Fail with timeout.
Help please, what need to change in my command?

That is not a supported method of creating index patterns in Kibana. You need to use the Kibana API for this: https://www.elastic.co/guide/en/kibana/master/saved-objects-api-create.html

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