Newly added Field Not available for aggregations

Elasticsearch 7.9.1
Kibana 7.9.1 - 4 docker containers

Updated the index mapping to add new field of type keyword.
Waited for new index to be created.
Refreshed the index pattern in Kibana.
Searched for that field in the Field list in kibana.

  • field is string, searchable and aggregatable
    Field shows up as unknown field in discover
    When trying to create a visualization and aggregate by this field, I cannot find the new field in terms list.

Side note: when refreshing the index pattern, the field would show up then disappear a few moments later, at which point I would have to refresh the index pattern again.

hi @lzukel,

  • What is the actual mapping of that field in Elasticsearch?
  • Do you have documents that have populated values for that field (or does it only exist in the Elasticsearch-mapping)?

the mapping for the field is keyword.
Yes there are many documents that have populated with that field

Screen Shot 2021-01-15 at 9.26.34 AM Screen Shot 2021-01-15 at 9.27.22 AM

After refreshing the index template page... The field has mysteriously disappeared from the index pattern:

When searching that field in the discover tab with that index pattern there is no cached mapping for that field:
Screen Shot 2021-01-15 at 9.33.55 AM