Skip to content

Commit

Permalink
[EPM] Handle multi fields in index template generation (#63112) (#63842)
Browse files Browse the repository at this point in the history
* Add unit test stub for multi fields.

* Add multi field handling to mapping generation.

* Start documenting index template generation.

* Add unit tests.

* Remove stub for fields.yml documentation

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
skh and elasticmachine authored Apr 17, 2020
1 parent 54e9f67 commit f586cac
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 101 deletions.
7 changes: 7 additions & 0 deletions docs/ingest_manager/index-templates.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Elasticsearch Index Templates

## Generation

* Index templates are generated from `YAML` files contained in the package.
* There is one index template per dataset.
* For the generation of an index template, all `yml` files contained in the package subdirectory `dataset/DATASET_NAME/fields/` are used.
7 changes: 7 additions & 0 deletions docs/ingest_manager/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,10 @@ The new ingest pipeline is expected to still work with the data coming from olde
In case of a breaking change in the data structure, the new ingest pipeline is also expected to deal with this change. In case there are breaking changes which cannot be dealt with in an ingest pipeline, a new package has to be created.

Each package lists its minimal required agent version. In case there are agents enrolled with an older version, the user is notified to upgrade these agents as otherwise the new configs cannot be rolled out.

=== Generated assets

When a package is installed or upgraded, certain Kibana and Elasticsearch assets are generated from . These follow the naming conventions explained above (see "indexing strategy") and contain configuration for the elastic stack that makes ingesting and displaying data work with as little user interaction as possible.

* link:index-templates.asciidoc[Elasticsearch Index Templates]
* Kibana Index Patterns

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f586cac

Please sign in to comment.