Hello,
I am looking for a way to trigger the index mapping refresh (the button below) through a script/API call/whatever

I am building a Docker image for Kibana, which also loads some visualizations, searches, dashboards and the necessary index patterns (I am using the bulk API to index the Objects in the .kibana index), which works pretty good so far. Currently I am defining all my fields with the index pattern:
{
"title": "logstash-*",
"timeFieldName": "@timestamp",
"fields": "[
{"name":"_index","type":"string","count":0,"scripted":false,"indexed":false,"analyzed":false,"doc_values":false},
{"name":"Severity.raw","type":"string","count":0,"scripted":false,"indexed":true,"analyzed":false,"doc_values":true},
...
]"
}
However this approach requires to update the Kibana container image every time we introduce a new field in the Logstash container images, because I have to add the field in the index mapping, which gets imported
Because this shall be an automated setup and because I think most of our users won´t know about Kibanas internal mapping, I am looking for a way to trigger the refresh every time Kibana starts
I know you are working on getting rid of this internal mapping, but until this feature arrives in Kibana I need a workaround. Manually clicking on refresh is not an option
BR