-
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
Template setting in the configuration file #4284
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a changelog entry?
"refresh_interval": "5s", | ||
"mapping": common.MapStr{ | ||
"total_fields": common.MapStr{ | ||
"limit": defaultTotalFieldsLimit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work on all ES versions down to 2.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ES 2.x will just ignore the setting, but I'm going to test it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested, seems to work well.
Fields string `config:"fields"` | ||
Overwrite bool `config:"overwrite"` | ||
OutputToFile string `config:"output_to_file"` | ||
Settings map[string]interface{} `config:"settings"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on using a "generic" approach
Part of #3654 |
This allows adding and overwriting index/template settings via the configuration file. Example config: setup.template.settings: index.number_of_shards: 1 index.number_of_replicas: 1 Needed for elastic#4112, part of elastic#3654.
This allows adding and overwriting index/template settings via the
configuration file.
Example config:
Needed for #4112.
ToDOs: