Skip to content
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

Index management errors messages should always specify the correct index management type to use #36732

Closed
cmacknz opened this issue Oct 4, 2023 · 0 comments · Fixed by #36944
Assignees
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Oct 4, 2023

This is follow up from #36649

If you run filebeat setup --index-management with the default parameters where both setup.ilm.overwrite: false and setup.dsl.overwrite: false are set against either a serverless project or stateful deployment you will get the following error:

Overwriting lifecycle policy is disabled. Set `setup.ilm.overwrite: true` or `setup.dsl.overwrite: true` to overwrite.
Index setup finished.

This error is expected, but the error message should tell the user which of ilm or dsl to use since the Beat knows which one is correct. This error message is generated with the default parameters so we should be as explicit as possible, since this is probably the first message a user will ever see when trying to use index management in Beats for the first time.

Specifically, when connected to a stateful deployment the error message should be:

Overwriting ILM policy is disabled. Set `setup.ilm.overwrite: true` to overwrite.

When connected to a serverless project the error message should be:

Overwriting DSL policy is disabled. Set `setup.dsl.overwrite: true` to overwrite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants