Skip to content
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

Configurable index template loading #21212

Merged
merged 8 commits into from
Sep 25, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Sep 22, 2020

What does this PR do?

The PR adds a new configuration option named setup.template.type to select the index template type. From ES v7.8 new index templates were introduced. Possible option:

  • legacy: Loads the legacy index template. This is default option, so it does not break existing deployments.
  • component: This loads Beats' index template as a composite template, so it can be used in the users' index templates.
  • index: Loads the new index template.

Why is it important?

Index templates v2 was released in Elasticsearch 7.8. Previously Beats had used the legacy endpoint for installing index templates. Now we are moving to the newer version.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test this PR locally

./filebeat setup

Related issues

Closes #17829

@kvch kvch added needs_backport PR is waiting to be backported to other branches. Team:Services (Deprecated) Label for the former Integrations-Services team labels Sep 22, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 22, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 22, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21212 updated]

  • Start Time: 2020-09-24T14:36:08.278+0000

  • Duration: 90 min 56 sec

Test stats 🧪

Test Results
Failed 1
Passed 20166
Skipped 1833
Total 22000

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestClientPublishEventKerberosAware – elasticsearch

    • Age: 3
    • Duration: 3.01
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: Mage build test

    • Description: mage build test

    • Duration: 23 min 53 sec

    • Start Time: 2020-09-24T15:02:24.605+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: script returned exit code 1

    • Duration: 0 min 1 sec

    • Start Time: 2020-09-24T15:25:35.273+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-24T16:05:22.258Z] + tar -xpf source.tgz
[2020-09-24T16:05:34.849Z] + rm source.tgz
[2020-09-24T16:05:35.449Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats
[2020-09-24T16:05:35.474Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Lint
[2020-09-24T16:05:35.588Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-24T16:05:35.717Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-24T16:05:35.857Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-24T16:05:35.955Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/dockerlogbeat
[2020-09-24T16:05:36.060Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Journalbeat
[2020-09-24T16:05:36.169Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-24T16:05:36.274Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-24T16:05:36.381Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-24T16:05:36.487Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-24T16:05:36.603Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-24T16:05:36.705Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-24T16:05:36.802Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-24T16:05:36.899Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-24T16:05:36.993Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-24T16:05:37.097Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-24T16:05:37.218Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-24T16:05:37.329Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-24T16:05:37.437Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-24T16:05:37.542Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-24T16:05:37.641Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-24T16:05:37.755Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-24T16:05:37.848Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-24T16:05:37.951Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-24T16:05:38.042Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-24T16:05:38.151Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-24T16:05:38.287Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-24T16:05:38.406Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-24T16:05:38.538Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-24T16:05:38.661Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-24T16:05:38.762Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-24T16:05:38.871Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-24T16:05:38.963Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-24T16:05:39.063Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-24T16:05:39.202Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-24T16:05:39.300Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-24T16:05:39.392Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-24T16:05:39.486Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-24T16:05:39.584Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Libbeat-oss
[2020-09-24T16:05:39.676Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-24T16:05:39.767Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-oss
[2020-09-24T16:05:39.863Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-24T16:05:39.956Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-24T16:05:40.066Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-24T16:05:40.193Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-24T16:05:40.324Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-24T16:05:40.773Z] + cat
[2020-09-24T16:05:40.773Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-24T16:05:40.773Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-24T16:05:47.408Z] runbld>>> runbld started
[2020-09-24T16:05:47.408Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-24T16:05:49.331Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-24T16:05:49.331Z] runbld>>> Matches in the system config:
[2020-09-24T16:05:49.331Z] runbld>>> - Matched ^elastic\+beats
[2020-09-24T16:05:49.331Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-24T16:05:50.722Z] runbld>>> Debug logging enabled.
[2020-09-24T16:05:50.722Z] runbld>>> Storing result
[2020-09-24T16:05:50.722Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-24T16:05:50.722Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924160550-786BDBB7
[2020-09-24T16:05:50.722Z] runbld>>> Adding system facts.
[2020-09-24T16:05:52.119Z] runbld>>> Adding vcs info for the latest commit:  e33085eefbb11e6ce0d758673ba7ab21f649b7a8
[2020-09-24T16:05:52.119Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-24T16:05:52.119Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-24T16:05:52.119Z] Processing JUnit reports with runbld...
[2020-09-24T16:05:52.119Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-24T16:05:52.382Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-24T16:05:52.382Z] runbld>>> DURATION: 33ms
[2020-09-24T16:05:52.382Z] runbld>>> STDOUT: 40 bytes
[2020-09-24T16:05:52.382Z] runbld>>> STDERR: 49 bytes
[2020-09-24T16:05:52.382Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-24T16:05:52.382Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21212
[2020-09-24T16:05:53.797Z] runbld>>> Storing build metadata: 
[2020-09-24T16:05:53.797Z] runbld>>> Adding test report.
[2020-09-24T16:05:53.797Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats
[2020-09-24T16:05:54.373Z] runbld>>> Found 139 test output files
[2020-09-24T16:05:54.947Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-24T16:05:54.947Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-24T16:05:54.947Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-24T16:05:54.947Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-24T16:05:54.947Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-24T16:05:55.894Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-24T16:05:55.895Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21212/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-24T16:05:57.814Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 21843 Skipped: 1560
[2020-09-24T16:05:57.814Z] runbld>>> Storing result
[2020-09-24T16:05:57.814Z] runbld>>> FAILURES: 1
[2020-09-24T16:05:58.076Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-24T16:05:58.077Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924160550-786BDBB7
[2020-09-24T16:05:58.339Z] runbld>>> Email notification disabled by environment variable.
[2020-09-24T16:05:58.339Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-24T16:06:03.910Z] Running on worker-395930 in /var/lib/jenkins/workspace/Beats_beats_PR-21212
[2020-09-24T16:06:04.035Z] [INFO] getVaultSecret: Getting secrets
[2020-09-24T16:06:04.130Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-24T16:06:06.182Z] + chmod 755 generate-build-data.sh
[2020-09-24T16:06:06.183Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21212/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21212/runs/9 FAILURE 5396496
[2020-09-24T16:06:06.183Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21212/runs/9/steps/?limit=10000 -o steps-info.json
[2020-09-24T16:06:11.395Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21212/runs/9/tests/?status=FAILED -o tests-errors.json
[2020-09-24T16:06:12.856Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21212/runs/9/log/ -o pipeline-log.txt

@kvch kvch force-pushed the feature-libbeat-adopt-v2-template-api branch from e98e386 to 8243c51 Compare September 23, 2020 15:03
@kvch kvch requested a review from a team as a code owner September 23, 2020 15:03
@kvch kvch changed the title Select index template loader API based on ES version Configurable index template loading Sep 24, 2020
libbeat/template/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it's ok. I just left the comment about the clarity of the Template type name

@kvch kvch force-pushed the feature-libbeat-adopt-v2-template-api branch from e1863c8 to 1a9f0df Compare September 24, 2020 09:14
@kvch kvch requested a review from a team as a code owner September 24, 2020 09:14
@kvch kvch force-pushed the feature-libbeat-adopt-v2-template-api branch from ef92f90 to ba8edde Compare September 24, 2020 14:34
@kvch
Copy link
Contributor Author

kvch commented Sep 25, 2020

Failing tests are unrelated.

@kvch kvch merged commit 6bb35c1 into elastic:master Sep 25, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
…peline-2.0

* upstream/master:
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (417 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (399 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (60 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
kvch added a commit to kvch/beats that referenced this pull request Sep 28, 2020
The PR adds a new configuration option named `setup.template.type` to select the index template type. From ES v7.8 new index templates were introduced. Possible option:

* `legacy`: Loads the legacy index template. This is the default option, so it does not break existing deployments.
* `component`: This loads Beats' index template as a composite template, so it can be used in the users' index templates.
* `index`: Loads the new index template.

Index templates v2 was released in Elasticsearch 7.8. Previously Beats had used the legacy endpoint for installing index templates. Now we are moving to the newer version.

Closes elastic#17829

(cherry picked from commit 6bb35c1)
@kvch kvch added v7.10.0 and removed needs_backport PR is waiting to be backported to other branches. labels Sep 28, 2020
kvch added a commit that referenced this pull request Oct 2, 2020
The PR adds a new configuration option named `setup.template.type` to select the index template type. From ES v7.8 new index templates were introduced. Possible option:

* `legacy`: Loads the legacy index template. This is the default option, so it does not break existing deployments.
* `component`: This loads Beats' index template as a composite template, so it can be used in the users' index templates.
* `index`: Loads the new index template.

Index templates v2 was released in Elasticsearch 7.8. Previously Beats had used the legacy endpoint for installing index templates. Now we are moving to the newer version.

Closes #17829

(cherry picked from commit 6bb35c1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Services (Deprecated) Label for the former Integrations-Services team v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that Beats index template loading works with v2 index templates
3 participants