Hello,
We have updated to Elasticsearch 9.4.0, Kibana 9.4.0, Elastic Agent 9.4.0 and Elasticsearch monitoring integration 1.20.2.
Since then, the Stack Monitong Indices tab is broken and does not load the dashboard:
The error message is:
[search_phase_execution_exception Caused by: illegal_argument_exception: cannot expand
inner_hitsfor collapse fieldindex_stats.index, only indexed field can retrieveinner_hitsRoot causes: illegal_argument_exception: cannot expandinner_hitsfor collapse fieldindex_stats.index, only indexed field can retrieveinner_hits: search_phase_execution_exception Caused by: illegal_argument_exception: cannot expandinner_hitsfor collapse fieldindex_stats.index, only indexed field can retrieveinner_hitsRoot causes: illegal_argument_exception: cannot expandinner_hitsfor collapse fieldindex_stats.index, only indexed field can retrieveinner_hits]: all shards failed
My research suggests that this error may be because field index_stats.index is an alias to field elasticsearch.index.name in data_stream metrics-elasticsearch.stack_monitoring.index-default.
Kibana uses collapse+inner_hits and Elasticsearch doesn't support this for an alias field. Is this correct?

