Skip to content

Commit

Permalink
[EPM] Use higher priority than default templates (elastic#70640)
Browse files Browse the repository at this point in the history
* Use higher priority than default templates

* Fixing the jest tests
  • Loading branch information
jonathan-buttner authored Jul 2, 2020
1 parent 23ea7ac commit 20237b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.

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

Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@ function getBaseTemplate(
packageName: string
): IndexTemplate {
return {
// This takes precedence over all index templates installed with the 'base' package
priority: 1,
// This takes precedence over all index templates installed by ES by default (logs-*-* and metrics-*-*)
// if this number is lower than the ES value (which is 100) this template will never be applied when a data stream
// is created. I'm using 200 here to give some room for users to create their own template and fit it between the
// default and the one the ingest manager uses.
priority: 200,
// To be completed with the correct index patterns
index_patterns: [`${templateName}-*`],
template: {
Expand Down

0 comments on commit 20237b8

Please sign in to comment.