You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
When running scripts/generator.py with --template-setting, generated/elasticsearch/template.json is partially overridden with provided custom values. That is, if specified, mappings are properly overridden but template settings part always remains to its default.
Steps to reproduce:
Check template-settings.json content (only index_patterns here for brevity)
Check template.json content (again, only index_patterns for brevity):
$ grep -A 2 index_patterns usage-example/generated/elasticsearch/template.json
"index_patterns": [
"try-ecs-*"
],
We are expecting "acme-weblogs-*".
Any additional context:
Reading the source, it looks defaults are hardcoded in save_composable_template() while its legacy equivalent is calling template_settings() which is reading the user-provided file.
The text was updated successfully, but these errors were encountered:
Description of the problem including expected versus actual behavior:
When running
scripts/generator.py
with--template-setting
,generated/elasticsearch/template.json
is partially overridden with provided custom values. That is, if specified, mappings are properly overridden but template settings part always remains to its default.Steps to reproduce:
template-settings.json
content (onlyindex_patterns
here for brevity)generator.py
:template.json
content (again, onlyindex_patterns
for brevity):We are expecting
"acme-weblogs-*"
.Any additional context:
Reading the source, it looks defaults are hardcoded in save_composable_template() while its legacy equivalent is calling template_settings() which is reading the user-provided file.
The text was updated successfully, but these errors were encountered: