The Metricbeat 7.17.14 monitoring interface can be used to query the closed es indices, leading to a lack of data in the Overview and Indices sections of the Elasticsearch dashboard within Metricbeat. This issue does not exist in es8.x, it's bug

Using metricbeat 7.17.14-linux-x86_64 to monitor Elasticsearch of Elk cluster, when closing the ES historical index, the Overview and Indicators index list of the ES cluster in the metricbeat monitoring dashboard cannot be displayed. Opening the ES historical index can display it. Check the metricbeat log information and print Elasticsearch.index_summary and Elasticsearch.index error log eg:

2024-04-23T18:47:26.530+0800 ERROR module/wrapper.go:259 Error fetching data for metricset elasticsearch.index: HTTP error 400 in : 400 Bad Request

2024-04-23T18:47:26.530+0800 ERROR module/wrapper.go:259 Error fetching data for metricset elasticsearch.index_summary: HTTP error 400 in : 400 Bad Request

2024-04-23T18:47:36.519+0800 ERROR module/wrapper.go:259 Error fetching data for metricset elasticsearch.index_summary: HTTP error 400 in : 400 Bad Request

2024-04-23T18:47:36.520+0800 ERROR module/wrapper.go:259 Error fetching data for metricset elasticsearch.index: HTTP error 400 in : 400 Bad Request