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

Include full list of recommended action.auto_create_index values for bootstrap check #29737

Closed
elasticmachine opened this issue Feb 10, 2017 · 2 comments
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v5.0.0-beta1

Comments

@elasticmachine
Copy link
Collaborator

Original comment by @ppf2:

5.0 beta1

If action.auto_create_index is set to false, we are catching this as part of bootstrap check, for security first and it tells the user to set it to .security:

org.elasticsearch.bootstrap.StartupException: ElasticsearchException[Failed to load plugin class [org.elasticsearch.xpack.XPackPlugin]]; nested: InvocationTargetException; nested: IllegalArgumentException[the [action.auto_create_index] setting value [false] is too restrictive. disable [action.auto_create_index] or set it to [.security]];

If you then set it to .security, the node will again fail to start up because it then moves on to check for watcher:

org.elasticsearch.bootstrap.StartupException: ElasticsearchException[Failed to load plugin class [org.elasticsearch.xpack.XPackPlugin]]; nested: InvocationTargetException; nested: IllegalArgumentException[the [action.auto_create_index] setting value [.security] is too restrictive. disable [action.auto_create_index] or set it to [.watches, .triggered_watches, .watcher-history-*]];

Certainly, the documentation tells the end user to set it to action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*, so let's update the error handling or set it to to reference the full list of recommended auto_create_index settings.

@elasticmachine
Copy link
Collaborator Author

Original comment by @clintongormley:

Also see #20640 which has a plan for removing auto_create_index

@elasticmachine elasticmachine added :Data Management/Indices APIs APIs to create and manage indices and templates v5.0.0-beta1 labels Apr 25, 2018
@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
@dakrone
Copy link
Member

dakrone commented Nov 6, 2020

I believe this is not necessary any more as we now have access to #61858 within a template itself.

@dakrone dakrone closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v5.0.0-beta1
Projects
None yet
Development

No branches or pull requests

3 participants