How can I set an index pattern with python (before putting any docs)? I came up with this, am I on the right tracks?
query =
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1,
"mappings": {...},
"index-pattern" : {
"title" : "myindex",
"timeFieldName" : "sendTime",
"fields" : """[{"name":"_id","type":"string","esTypes":["_id"],"count":0, ...]}"""
es_client.indices.create(index = "myindex" , body = query)
Am I missing sth?
(The thing is, if the index pattern is not defined, I can't use Dashboard. By Just defining mappings and similar stuff (analysis, ...) but having no docs, the index is not known to Kibana for creating the index pattern. At least one document should be present/added.
I found that there was an issue about this, and it seems to be solved; Yet I'm using the latest version (7.8) and still have this problem.
Update: Made it this far, but still stuck there!
Update: Solved! See the above link