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
Can't set action.auto_create_index to any value(too restrictive) #33369
Comments
Pinging @elastic/es-core-infra |
Thanks for raising the issue. You need to specify the index patterns without any spaces in between. The following works:
(note how I removed the spaces after each comma). I'll create a PR to remove the spaces in the error message so it is copy&pasteable. |
Watcher validates `action.auto_create_index` upon startup. If a user specifies a pattern that does not contain watcher indices, it raises an error message to include a list of three indices. However, the indices are separated by a comma and a space which is not considered in parsing. With this commit we change the error message string so it does not contain the additional space thus making it more straightforward to copy it to the configuration file. Closes elastic#33369
Alright thanks, this fixes it. |
Watcher validates `action.auto_create_index` upon startup. If a user specifies a pattern that does not contain watcher indices, it raises an error message to include a list of three indices. However, the indices are separated by a comma and a space which is not considered in parsing. With this commit we change the error message string so it does not contain the additional space thus making it more straightforward to copy it to the configuration file. Closes #33369 Relates #33497
Watcher validates `action.auto_create_index` upon startup. If a user specifies a pattern that does not contain watcher indices, it raises an error message to include a list of three indices. However, the indices are separated by a comma and a space which is not considered in parsing. With this commit we change the error message string so it does not contain the additional space thus making it more straightforward to copy it to the configuration file. Closes #33369 Relates #33497
that means we can't close action.auto_create_index setting? btw, I just tried this on elasticsearch server version of 7.9.2, still can't close auto_create_index! @danielmitterdorfer |
Elasticsearch version: 6.4.0
Plugins installed: []
JVM version: OpenJDK 1.8.0_181
OS version: Linux 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
When I try to set
action.auto_create_index: false
I get the following error when starting Elasticsearch:Caused by: java.lang.IllegalArgumentException: the [action.auto_create_index] setting value [false] is too restrictive. disable [action.auto_create_index] or set it to [.watches, .triggered_watches, .watcher-history-*]
After trying some different values(
-*
and+foobar,-*
) I decided to try setting it to exactly what the error message recommended:action.auto_create_index: watches, .triggered_watches, .watcher-history-*
which is when I got the amazing error:Caused by: java.lang.IllegalArgumentException: the [action.auto_create_index] setting value [.watches, .triggered_watches, .watcher-history-*] is too restrictive. disable [action.auto_create_index] or set it to [.watches, .triggered_watches, .watcher-history-*]
The initial issue still isn't solved(still can't disable automatic index creation), but this seems like a documentation/errormessage bug at the very least.
Steps to reproduce:
action.auto_create_index: false
in elasticsearch.ymlThe text was updated successfully, but these errors were encountered: