Skip to content

Conversation

@ycombinator
Copy link
Contributor

@ycombinator ycombinator commented May 6, 2020

What does this PR do?

As a follow up to #12606, this PR:

  • adds a developer CHANGELOG entry for the changes made in Allow delete and index actions with a document ID #12606, and
  • extracts GetMetaStringValue out of the Event API and into a helper function in a new events package. This helper function has a rather specific purpose — to get a string field's value out of an event's metadata — so it is better as a helper function than being part of the Event API itself.
  • consolidates various event metadata field names as constants into the new events package.

Why is it important?

  • The developer CHANGELOG addition will inform developers using the Elasticsearch output.
  • The refactoring will help keep the Event API surface minimal.

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.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 6, 2020
@ycombinator ycombinator added the Team:Services (Deprecated) Label for the former Integrations-Services team label May 6, 2020
@elasticmachine
Copy link
Contributor

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

@ycombinator ycombinator added [zube]: In Review needs_backport PR is waiting to be backported to other branches. v7.8.0 v7.9.0 v8.0.0 and removed needs_team Indicates that the issue/PR needs a Team:* label labels May 6, 2020
@ycombinator ycombinator requested a review from kvch May 6, 2020 14:07
@zube zube bot removed needs_backport PR is waiting to be backported to other branches. v7.8.0 v7.9.0 v8.0.0 labels May 6, 2020
@ycombinator ycombinator requested a review from urso May 6, 2020 14:07
@ycombinator ycombinator added needs_backport PR is waiting to be backported to other branches. v7.8.0 v7.9.0 v8.0.0 refactoring labels May 6, 2020
@ycombinator
Copy link
Contributor Author

@urso I've addressed your feedback in f4b3c4d6c517423dcea71be0c02431bc1630c371. This PR is ready for re-review. Thanks!

@elasticmachine
Copy link
Contributor

elasticmachine commented May 8, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request Followup to 12606 #18316 updated]

  • Start Time: 2020-05-13T18:28:19.781+0000

  • Duration: 121 min 16 sec (7275841)

Test stats 🧪

Test Results
Failed 0
Passed 7611
Skipped 1218
Total 8829

Steps errors

Expand to view the steps failures

  • Name: Docker login

    • Description:

    • Result: FAILURE

    • Duration: 0 min 1 sec

    • Start Time: 2020-05-13T19:52:10.820+0000

    • log

  • Name: Docker login

    • Description:

    • Result: FAILURE

    • Duration: 0 min 1 sec

    • Start Time: 2020-05-13T19:52:20.885+0000

    • log

  • Name: Docker login

    • Description:

    • Result: FAILURE

    • Duration: 0 min 1 sec

    • Start Time: 2020-05-13T19:52:31.956+0000

    • log

  • Name: Make -C generator/_templates/beat test

    • Description: make -C generator/_templates/beat test

    • Result: FAILURE

    • Duration: 6 min 38 sec

    • Start Time: 2020-05-13T20:23:12.469+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-13T20:28:57.929Z] + '[' -f metricbeat/build/coverage/full.cov ']'
[2020-05-13T20:28:57.929Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-13T20:28:57.929Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-13T20:28:57.929Z] + '[' -f packetbeat/build/coverage/full.cov ']'
[2020-05-13T20:28:57.929Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-13T20:28:57.929Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-13T20:28:57.929Z] + '[' -f winlogbeat/build/coverage/full.cov ']'
[2020-05-13T20:28:57.929Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-13T20:28:57.929Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-13T20:28:57.929Z] + '[' -f journalbeat/build/coverage/full.cov ']'
[2020-05-13T20:28:59.662Z] ERROR: Ignore error temporally
[2020-05-13T20:28:59.662Z] ERROR: script returned exit code 2
[2020-05-13T20:29:00.615Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats
[2020-05-13T20:29:01.081Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-13T20:29:01.122Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Lint
[2020-05-13T20:29:01.301Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-05-13T20:29:01.508Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Winlogbeat-oss
[2020-05-13T20:29:01.706Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-05-13T20:29:01.935Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Dockerlogbeat
[2020-05-13T20:29:02.149Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Journalbeat-oss
[2020-05-13T20:29:02.317Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-05-13T20:29:02.526Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-05-13T20:29:02.684Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-05-13T20:29:02.883Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-05-13T20:29:03.112Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-13T20:29:03.363Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-13T20:29:03.615Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Heartbeat-oss
[2020-05-13T20:29:04.010Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-05-13T20:29:04.316Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-05-13T20:29:04.569Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Filebeat-Windows
[2020-05-13T20:29:04.796Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Libbeat-x-pack
[2020-05-13T20:29:05.026Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Auditbeat-Linux
[2020-05-13T20:29:05.224Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Packetbeat-oss
[2020-05-13T20:29:05.460Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-05-13T20:29:05.734Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-13T20:29:05.924Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-05-13T20:29:06.146Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Filebeat-x-pack
[2020-05-13T20:29:06.629Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-05-13T20:29:06.871Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-05-13T20:29:07.165Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Filebeat-oss
[2020-05-13T20:29:07.398Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-05-13T20:29:07.608Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-13T20:29:07.824Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-05-13T20:29:08.057Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-13T20:29:08.491Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Libbeat-oss
[2020-05-13T20:29:08.903Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-05-13T20:29:09.262Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-05-13T20:29:09.438Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Functionbeat-Windows
[2020-05-13T20:29:09.646Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Heartbeat-Windows
[2020-05-13T20:29:09.840Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-05-13T20:29:10.106Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-13T20:29:10.332Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-05-13T20:29:11.023Z] + cat
[2020-05-13T20:29:11.023Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-13T20:29:11.023Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-13T20:29:16.816Z] runbld>>> runbld started
[2020-05-13T20:29:16.816Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-13T20:29:18.410Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18316' in order of occurrence in the config (last value wins).
[2020-05-13T20:29:19.516Z] runbld>>> Debug logging enabled.
[2020-05-13T20:29:19.812Z] runbld>>> Storing result
[2020-05-13T20:29:19.812Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-13T20:29:19.812Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200513202919-53B2F939
[2020-05-13T20:29:19.812Z] runbld>>> Adding system facts.
[2020-05-13T20:29:20.860Z] runbld>>> Adding vcs info for the latest commit:  85c6e54408abd00a37e5bad784511bf45f73026c
[2020-05-13T20:29:20.860Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-13T20:29:20.860Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-13T20:29:20.860Z] Processing JUnit reports with runbld...
[2020-05-13T20:29:20.860Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-13T20:29:21.546Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-13T20:29:21.546Z] runbld>>> DURATION: 16ms
[2020-05-13T20:29:21.546Z] runbld>>> STDOUT: 40 bytes
[2020-05-13T20:29:21.546Z] runbld>>> STDERR: 49 bytes
[2020-05-13T20:29:21.546Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-13T20:29:21.546Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats
[2020-05-13T20:29:22.661Z] runbld>>> Storing build metadata: 
[2020-05-13T20:29:22.661Z] runbld>>> Adding test report.
[2020-05-13T20:29:22.661Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats
[2020-05-13T20:29:23.737Z] runbld>>> Found 99 test output files
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-05-13T20:29:24.419Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-05-13T20:29:25.450Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-05-13T20:29:25.450Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-05-13T20:29:25.748Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 8679 Skipped: 1008
[2020-05-13T20:29:26.095Z] runbld>>> Storing result
[2020-05-13T20:29:26.095Z] runbld>>> FAILURES: 0
[2020-05-13T20:29:26.095Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-13T20:29:26.095Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200513202919-53B2F939
[2020-05-13T20:29:26.095Z] runbld>>> Email notification disabled by environment variable.
[2020-05-13T20:29:26.095Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-13T20:29:33.971Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18316
[2020-05-13T20:29:34.138Z] [INFO] getVaultSecret: Getting secrets
[2020-05-13T20:29:34.361Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-13T20:29:35.933Z] + chmod 755 generate-build-data.sh
[2020-05-13T20:29:35.934Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18316/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18316/runs/17 FAILURE 7275841
[2020-05-13T20:29:36.845Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18316/runs/17/steps/?limit=10000 -o steps-info.json
[2020-05-13T20:29:40.074Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18316/runs/17/tests/?status=FAILED -o tests-errors.json

@ycombinator
Copy link
Contributor Author

@urso Thanks for your feedback, as always. I've addressed all of it now. Please re-review this PR when you get a chance. Thanks again!

@ycombinator
Copy link
Contributor Author

@urso Ready for another round of review. Thanks!

@ycombinator ycombinator merged commit 81e49f8 into elastic:master May 14, 2020
@ycombinator ycombinator deleted the lb-followup-12606 branch May 14, 2020 13:31
@ycombinator ycombinator removed the needs_backport PR is waiting to be backported to other branches. label May 14, 2020
@zube zube bot added [zube]: Done needs_backport PR is waiting to be backported to other branches. and removed [zube]: In Review labels May 14, 2020
v1v added a commit to v1v/beats that referenced this pull request May 15, 2020
…w-oss

* upstream/master: (27 commits)
  Disable host fields for "cloud", panw, cef modules (elastic#18223)
  [docs] Rename monitoring collection from legacy internal collection to legacy collection (elastic#18504)
  Introduce auto detection of format (elastic#18095)
  Add additional fields to address issue elastic#18465 for googlecloud audit log (elastic#18472)
  Fix libbeat import path in seccomp policy template (elastic#18418)
  Address Okta input issue elastic#18530 (elastic#18534)
  [Ingest Manager] Avoid Chown on windows (elastic#18512)
  Fix Cisco ASA/FTD msgs that use a host name as NAT address (elastic#18376)
  [CI] Optimise stash/unstash performance (elastic#18473)
  Libbeat: Remove global loggers from libbeat/metric and libbeat/cloudid (elastic#18500)
  Fix PANW bad mapping of client/source and server/dest packets and bytes (elastic#18525)
  Add a file lock to the data directory on startup to prevent multiple agents. (elastic#18483)
  Followup to 12606 (elastic#18316)
  changed input from syslog to tcp/udp due to unsupported RFC (elastic#18447)
  Improve ECS field mappings in Sysmon module. (elastic#18381)
  [Elastic Agent] Cleaner output of inspect command  (elastic#18405)
  [Elastic Agent] Pick up version from libbeat (elastic#18350)
  Update communitybeats.asciidoc (elastic#18470)
  [Metricbeat] Change visualization interval from 15m to >=15m (elastic#18466)
  docs: Fix typo in kerberos docs (elastic#18503)
  ...
ycombinator added a commit that referenced this pull request May 19, 2020
* Followup to 12606 (#18316)

* Adding developer CHANGELOG entry

* Refactoring: extracting helper method

* Adding unit tests

* Consolidate event metadata field constants

* Use events.GetMetaStringValue

* Implement op_type values as enum

* Add doc strings

* Deference event pointer

* Renaming op type consts and breaking them out into own block

* Renaming type

* Using stringer

* Using go idiom instead of if-else

* Adding default op type

* Empty string for default

* Store op type enum, not string, in event metadata

* Using events.GetMetaStringValue

* Updating dev CHANGELOG entry

* Allow for op_type metadata field to be set as either string or enum

* No need for .String()

* Handle missing key case gracefully

* Update unit tests

* Update developer CHANGELOG entry

* Fixing up CHANGELOG
ycombinator added a commit that referenced this pull request May 19, 2020
* Followup to 12606 (#18316)

* Adding developer CHANGELOG entry

* Refactoring: extracting helper method

* Adding unit tests

* Consolidate event metadata field constants

* Use events.GetMetaStringValue

* Implement op_type values as enum

* Add doc strings

* Deference event pointer

* Renaming op type consts and breaking them out into own block

* Renaming type

* Using stringer

* Using go idiom instead of if-else

* Adding default op type

* Empty string for default

* Store op type enum, not string, in event metadata

* Using events.GetMetaStringValue

* Updating dev CHANGELOG entry

* Allow for op_type metadata field to be set as either string or enum

* No need for .String()

* Handle missing key case gracefully

* Update unit tests

* Update developer CHANGELOG entry

* Fixing up CHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_backport PR is waiting to be backported to other branches. refactoring Team:Services (Deprecated) Label for the former Integrations-Services team v7.8.0 v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants