libbeat/idxmgmt: alias creation fails when setup.ilm.overwrite: true
and alias exists
#26142
Labels
setup.ilm.overwrite: true
and alias exists
#26142
When ILM is enabled, libbeat will attempt to create a write alias. It does this by creating an index, and attempting to pointing the write alias to it:
beats/libbeat/idxmgmt/ilm/client_handler.go
Lines 178 to 208 in dc57628
If the index already exists, Elasticsearch will return 400; libbeat then checks if the alias exists, and carries on without error if it does.
If the index does not exist (e.g. because it rolled over), but the write alias exists and points to some other index, then Elasticsearch returns 500. In this case, libbeat fails index management setup with an error like (taken from apm-server):
The text was updated successfully, but these errors were encountered: