Skip to content

Commit f402559

Browse files
authored
Exclude dotted indices from settings pull (#43306)
* Exclude dotted indices from settings pull * Added changelog entry
1 parent eb117bd commit f402559

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.next.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403]
482482
- Log every 401 response from Kubernetes API Server {pull}42714[42714]
483483
- Add a new `match_by_parent_instance` option to `perfmon` module. {pull}43002[43002]
484484
- Changed the Elasticsearch module behavior to only pull settings from non-system indices. {pull}43243[43243]
485+
- Exclude dotted indices from settings pull in Elasticsearch module. {pull}43306[43306]
485486

486487
*Metricbeat*
487488
- Add benchmark module {pull}41801[41801]

metricbeat/module/elasticsearch/index/data.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func eventsMapping(r mb.ReporterV2, httpClient *helper.HTTP, info elasticsearch.
192192
return fmt.Errorf("failure retrieving cluster state from Elasticsearch: %w", err)
193193
}
194194

195-
indicesSettingsPattern := "*"
195+
indicesSettingsPattern := "*,-.*"
196196
indicesSettingsFilterPaths := []string{"*.settings.index.creation_date", "*.settings.index.**._tier_preference", "*.settings.index.version.created"}
197197
indicesSettings, err := elasticsearch.GetIndexSettings(httpClient, httpClient.GetURI(), indicesSettingsPattern, indicesSettingsFilterPaths)
198198
if err != nil {

0 commit comments

Comments
 (0)