You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Beat is run with setup.ilm.check_exists: false
It prints:
INFO [index-management] idxmgmt/std.go:309 Write alias successfully generated.
However, that is not true, as the function creating the write alias is silently skipping the creation of the index due to check_exists being false:
iferr:=m.ilm.EnsureAlias(); err!=nil {
ifilm.ErrReason(err) !=ilm.ErrAliasAlreadyExists {
returnerr
}
log.Info("Write alias exists already")
} else {
log.Info("Write alias successfully generated.")
}
[...]
func (m*stdManager) EnsureAlias() error {
if!m.checkExists {
returnnil
}
b, err:=m.client.HasAlias(m.alias.Name)
iferr!=nil {
returnerr
}
ifb {
returnnil
}
// This always assume it's a date pattern by sourrounding it by <...>returnm.client.CreateAlias(m.alias)
}
In the scenario were ILM is not setup properly, this will result in the write index not being created. An index named after the write index created instead.
The text was updated successfully, but these errors were encountered:
When a Beat is run with
setup.ilm.check_exists: false
It prints:
However, that is not true, as the function creating the write alias is silently skipping the creation of the index due to
check_exists
being false:In the scenario were ILM is not setup properly, this will result in the write index not being created. An index named after the write index created instead.
The text was updated successfully, but these errors were encountered: