-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metricbeat Doesn't Get ILM Policy via Auto ILM #12563
Comments
@dsanders11 Can you share your metricbeat configuration? |
@ph, it was the standard configuration on CentOS 7.4. All I changed was the |
I figured out I have the same problem. Default config, no special index names set. ILM seems to be enabled automatically and the template seems not to be used because of the pattern mismatch. |
The problem seems to exist. At first run of metricbeat to collect data, an index will be created (index: metricbeat-7.8.0) but the template (index patterns: metricbeat-7.8.0-*) won't be applied. Adjusting the template index pattern after creation (before first data collection) seems to be a workaround. But is that a good idea, or does it trigger not yet known problems? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue doesn't have a |
@elastic: please check if this problem still exists, for me 7.13 seems to have finally fixed this issue but I also have changed metricbeat_writer rights which might also have been a problem. |
This is expected, but it is important to notice that A common problem with this is that if the alias is manually removed while beats are running, beats will continue trying to write there, and Elasticsearch will create a new index without any mapping. Beats have some checks to detect this kind of situations on startup, and try to solve it or explicitly fail, but they cannot detect them when they are already running, or if ilm is disabled. This alias shouldn't be removed when Beats are running.
7.13.2 includes a fix (#26146) that solved an issue creating the write index the alias points to, so this may actually solve some of the issues caused by manually deleting the alias or the write index. |
Logs
Can anyone spot the problem? The template pattern won't match the index name, so the index gets created without the template applying, so ILM doesn't actually apply.
The text was updated successfully, but these errors were encountered: