-
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
Beats should not enforce setup.template.name
and pattern
if templates are disabled.
#5308
Comments
Maybe these could be added to the default config and just left commented out? Would be much easier for users to figure out and fix. |
If the elasticsearch index name is changed, its required to set a template. The error message was also shown when template itself are disabled. This is now changed that if templates are disabled, no error is returned. Closes elastic#5308
I opened a PR here to fix the issue: #5319 @kurtado If this will be a common issue that people change the index pattern, we should add it to the default config options to make it easily modifiable. I'm kind of hoping the default is not changed that often as also the setting to change the ES index is not in the default config. |
* Do not require template if index change and template disabled If the elasticsearch index name is changed, its required to set a template. The error message was also shown when template itself are disabled. This is now changed that if templates are disabled, no error is returned. Closes #5308 * Add Changelog
…c#5319) * Do not require template if index change and template disabled If the elasticsearch index name is changed, its required to set a template. The error message was also shown when template itself are disabled. This is now changed that if templates are disabled, no error is returned. Closes elastic#5308 * Add Changelog (cherry picked from commit ce9e47b)
…#5334) * Do not require template if index change and template disabled If the elasticsearch index name is changed, its required to set a template. The error message was also shown when template itself are disabled. This is now changed that if templates are disabled, no error is returned. Closes #5308 * Add Changelog (cherry picked from commit ce9e47b)
…c#5319) (elastic#5334) * Do not require template if index change and template disabled If the elasticsearch index name is changed, its required to set a template. The error message was also shown when template itself are disabled. This is now changed that if templates are disabled, no error is returned. Closes elastic#5308 * Add Changelog (cherry picked from commit b56accf)
When you set
output.elasticsearch.index: "my_index"
Beats force you to also setsetup.template.name
andsetup.template.pattern
(Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified.
). However, if you don't want Beats to manage templates and setsetup.template.enabled: false
it still complains about the settings above, but it should not.The text was updated successfully, but these errors were encountered: