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

Fix Winlogbeat export index-pattern with migration.6_to_7.enabled #20540

Merged

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Aug 11, 2020

What does this PR do?

  • Fixes a duplicated field in Winlogbeat's index pattern when migration.6_to_7.enabled is true.

  • Updates the common system/tests for all Beats to test that the command below works:

beatname export index-pattern -E migration.6_to_7.enabled=true

Why is it important?

To catch cases where migration aliases cause field duplication or other issues.

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.

Related issues

@adriansr adriansr added in progress Pull request is currently in progress. Team:SIEM labels Aug 11, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@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 Aug 11, 2020
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

LGTM.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Aug 11, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20540 updated]

  • Start Time: 2020-08-12T08:42:43.457+0000

  • Duration: 79 min 27 sec

Test stats 🧪

Test Results
Failed 0
Passed 17976
Skipped 1827
Total 19803

Steps errors

Expand to view the steps failures

  • Name: Make test
    • Description: make -C generator/_templates/metricbeat test

    • Duration: 1 min 57 sec

    • Start Time: 2020-08-12T09:07:01.917+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-08-12T10:01:03.523Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-20540-4/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-20540/source.tgz
[2020-08-12T10:01:33.378Z] + tar --version
[2020-08-12T10:01:33.673Z] + tar -xpf source.tgz
[2020-08-12T10:01:43.989Z] + rm source.tgz
[2020-08-12T10:01:44.002Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats
[2020-08-12T10:01:44.023Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Lint
[2020-08-12T10:01:44.122Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-08-12T10:01:44.199Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-08-12T10:01:44.276Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-08-12T10:01:44.354Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-08-12T10:01:44.434Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Winlogbeat-oss
[2020-08-12T10:01:44.514Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-08-12T10:01:44.591Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-08-12T10:01:44.669Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Dockerlogbeat
[2020-08-12T10:01:44.752Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-08-12T10:01:44.830Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Journalbeat-oss
[2020-08-12T10:01:44.912Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-08-12T10:01:44.989Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Packetbeat-Linux
[2020-08-12T10:01:45.080Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-08-12T10:01:45.164Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-08-12T10:01:45.242Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-08-12T10:01:45.320Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-08-12T10:01:45.407Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-08-12T10:01:45.490Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Heartbeat-oss
[2020-08-12T10:01:45.575Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-08-12T10:01:45.653Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-08-12T10:01:45.731Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-08-12T10:01:45.809Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-08-12T10:01:45.895Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-08-12T10:01:45.973Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-08-12T10:01:46.054Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Libbeat-x-pack
[2020-08-12T10:01:46.139Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-08-12T10:01:46.218Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-08-12T10:01:46.299Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-Windows
[2020-08-12T10:01:46.382Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-08-12T10:01:46.460Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-Windows
[2020-08-12T10:01:46.539Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-08-12T10:01:46.616Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-08-12T10:01:46.697Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Functionbeat-Windows
[2020-08-12T10:01:46.775Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Packetbeat-Windows
[2020-08-12T10:01:46.857Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-oss
[2020-08-12T10:01:46.943Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Filebeat-x-pack
[2020-08-12T10:01:47.028Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Libbeat-oss
[2020-08-12T10:01:47.110Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Heartbeat-Windows
[2020-08-12T10:01:47.189Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-08-12T10:01:47.266Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-08-12T10:01:47.352Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-08-12T10:01:47.433Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-08-12T10:01:47.515Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-08-12T10:01:47.592Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-08-12T10:01:47.994Z] + cat
[2020-08-12T10:01:47.994Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-08-12T10:01:47.994Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-08-12T10:01:54.583Z] runbld>>> runbld started
[2020-08-12T10:01:54.583Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-08-12T10:01:55.543Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-08-12T10:01:55.543Z] runbld>>> Matches in the system config:
[2020-08-12T10:01:55.543Z] runbld>>> - Matched ^elastic\+beats
[2020-08-12T10:01:55.543Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-08-12T10:01:56.928Z] runbld>>> Debug logging enabled.
[2020-08-12T10:01:56.928Z] runbld>>> Storing result
[2020-08-12T10:01:57.189Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-08-12T10:01:57.189Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200812100156-150B328B
[2020-08-12T10:01:57.189Z] runbld>>> Adding system facts.
[2020-08-12T10:01:58.136Z] runbld>>> Adding vcs info for the latest commit:  b6844af10ff9e4e0362246498d330614c0fe8261
[2020-08-12T10:01:58.136Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-08-12T10:01:58.136Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-08-12T10:01:58.136Z] Processing JUnit reports with runbld...
[2020-08-12T10:01:58.136Z] + echo 'Processing JUnit reports with runbld...'
[2020-08-12T10:01:58.707Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-08-12T10:01:58.707Z] runbld>>> DURATION: 30ms
[2020-08-12T10:01:58.707Z] runbld>>> STDOUT: 40 bytes
[2020-08-12T10:01:58.707Z] runbld>>> STDERR: 49 bytes
[2020-08-12T10:01:58.707Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-08-12T10:01:58.707Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20540
[2020-08-12T10:01:59.651Z] runbld>>> Storing build metadata: 
[2020-08-12T10:01:59.651Z] runbld>>> Adding test report.
[2020-08-12T10:01:59.651Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats
[2020-08-12T10:02:00.222Z] runbld>>> Found 137 test output files
[2020-08-12T10:02:01.165Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-08-12T10:02:01.165Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-08-12T10:02:01.165Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-08-12T10:02:01.438Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-08-12T10:02:01.438Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-08-12T10:02:01.438Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-08-12T10:02:01.438Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20540/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-08-12T10:02:04.033Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 19652 Skipped: 1560
[2020-08-12T10:02:04.033Z] runbld>>> Storing result
[2020-08-12T10:02:04.033Z] runbld>>> FAILURES: 0
[2020-08-12T10:02:04.033Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-08-12T10:02:04.033Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200812100156-150B328B
[2020-08-12T10:02:04.295Z] runbld>>> Email notification disabled by environment variable.
[2020-08-12T10:02:04.295Z] runbld>>> Slack notification disabled by environment variable.
[2020-08-12T10:02:10.060Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20540
[2020-08-12T10:02:10.277Z] [INFO] getVaultSecret: Getting secrets
[2020-08-12T10:02:10.357Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-08-12T10:02:11.128Z] + chmod 755 generate-build-data.sh
[2020-08-12T10:02:11.128Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20540/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20540/runs/4 FAILURE 4767410
[2020-08-12T10:02:11.128Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20540/runs/4/steps/?limit=10000 -o steps-info.json
[2020-08-12T10:02:13.611Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20540/runs/4/tests/?status=FAILED -o tests-errors.json

@adriansr adriansr force-pushed the test_export_index_pattern_with_migration branch from d781667 to 3ea81d5 Compare August 11, 2020 17:27
@adriansr adriansr force-pushed the test_export_index_pattern_with_migration branch from 3ea81d5 to b6844af Compare August 12, 2020 08:41
@adriansr adriansr changed the title Test export index-pattern with migration.6_to_7.enabled Fix Winlogbeat export index-pattern with migration.6_to_7.enabled Aug 12, 2020
@adriansr
Copy link
Contributor Author

CI errors unrelated

@adriansr adriansr merged commit ab7e533 into elastic:master Aug 12, 2020
@adriansr adriansr added needs_backport PR is waiting to be backported to other branches. and removed in progress Pull request is currently in progress. labels Aug 12, 2020
@adriansr adriansr added v7.10.0 and removed needs_backport PR is waiting to be backported to other branches. labels Aug 12, 2020
adriansr added a commit to adriansr/beats that referenced this pull request Aug 14, 2020
…astic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias
adriansr added a commit that referenced this pull request Aug 17, 2020
…igration.6_to_7.enabled (#20574)

* Test export commands in all Beats (#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

* Changelog entry

Co-authored-by: Andrew Kroh <[email protected]>
adriansr added a commit to adriansr/beats that referenced this pull request Aug 17, 2020
… with migration.6_to_7.enabled (elastic#20574)

* Test export commands in all Beats (elastic#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

* Changelog entry

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 9ec7549)
adriansr added a commit to adriansr/beats that referenced this pull request Aug 17, 2020
adriansr added a commit that referenced this pull request Aug 17, 2020
adriansr added a commit that referenced this pull request Aug 17, 2020
…igration.6_to_7.enabled (#20628)

* Cherry-pick #20540 to 7.x: Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20574)

* Test export commands in all Beats (#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 9ec7549)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
…astic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
… with migration.6_to_7.enabled (elastic#20628)

* Cherry-pick elastic#20540 to 7.x: Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20574)

* Test export commands in all Beats (elastic#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 66cfa25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Winlogbeat fails to export index-pattern with migration.6_to_7 enabled
3 participants