I am having issues creating Index patterns in Kibana. When I save the index pattern it first appears in the UI, but as soon as I navigate from the page it disappears. If I query the .kibana index trough the dev tools, I can see that there appears to be a Index pattern created, but Kibana doesn't seem to be able to query it.
I belive that this error message is related to the issue, as I see it right after creating the index pattern:
kibana: {"type":"response","@timestamp":"2019-06-13T08:40:12Z","tags":[],"pid":54858,"method":"get","statusCode":400,"req":{"url":"/api/saved_objects/_find?per_page=20&page=1&fields=title&fields=id&search_fields=title&type=index-pattern&type=visualization&type=dashboard&type=search&sort_field=type&default_search_operator=OR","method":"get","headers":{"host":"[redacted]","x-real-ip":"10.41.88.149","x-forwarded-for":"10.41.88.149","connection":"close","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://[redacted]/app/kibana","kbn-version":"7.1.1","content-type":"application/json","origin":"https://[redacted]"},"remoteAddress":"10.134.11.11","userAgent":"10.134.11.11","referer":"https://[redacted]/app/kibana"},"res":{"statusCode":400,"responseTime":104,"contentLength":9},"message":"GET /api/saved_objects/_find?per_page=20&page=1&fields=title&fields=id&search_fields=title&type=index-pattern&type=visualization&type=dashboard&type=search&sort_field=type&default_search_operator=OR 400 104ms - 9.0B"}
I also see this message in the Elasticsearch Data nodes at the same time:
[2019-06-13T10:40:12,904][DEBUG][o.e.a.s.TransportSearchAction] [es1-data] All shards failed for phase: [query] org.elasticsearch.ElasticsearchException$1: Fielddata is disabled on text fields by default. Set fielddata=true on [type] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
Running version 7.1.1 of the ELK stack.