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
Specifying a single custom file with --include produces the following output with no custom YAML files listed:
Running generator. ECS version 1.6.0-dev
Loading default schemas
Loading user defined schemas: []
Specifying a directory containing one or more custom files with --include produces the following output with the correct custom YAML files listed:
Running generator. ECS version 1.6.0-dev
Loading default schemas
Loading user defined schemas: ['../../config/ecs/custom/search_metrics.yml', '../../config/ecs/custom/search_metrics_simulation.yml']
The text was updated successfully, but these errors were encountered:
As per the "documentation", this is expected if the custom fields are not in the subset file:
Note that if you use --subset and --include together, your subset file should list the custom fields you're importing via --include. Otherwise --subset will filter them out right away :-)
It seems however that there is still a bug around including a single file vs directory.
If we use the principle of least surprise, I guess I would expect a failure message. The "docs" also say it can take a file so we should at least fix that comment.
The --help output indeed says it supports directories of YAML files.
The former unofficial "docs" from #746 have been deprecated in favor of proper documentation introduced in #893. The currents docs note how --include expects a directory today.
Created a new issue to improve consistency of the two arguments in #899.
Using both
--subset
and--include
together fails to include the custom fields. Using one or the other of those options seems to work fine though.Specifying a single custom file with
--include
produces the following output with no custom YAML files listed:Specifying a directory containing one or more custom files with
--include
produces the following output with the correct custom YAML files listed:The text was updated successfully, but these errors were encountered: