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 ordering and duplicate configs on autodiscover #19317

Merged
merged 3 commits into from
Jul 2, 2020

Conversation

vjsamuel
Copy link
Contributor

@vjsamuel vjsamuel commented Jun 22, 2020

Regression

What does this PR do?

#18979 introduced a pod level event which is generated after all container events. The ordering is wrong in that pod events are sent last which would generate a valid event similar to container events. The ordering needs to be pod first and container events next so that pod events dont override valid container events. One other issue was that the pod level hint generates a single config with all hosts and it wont get over written by container hints causing more than one config to be spun up for the same hint (one with a container meta and one without)

Why is it important?

Without this, container metadata will never be emitted even if a port belongs to a valid exposed port.

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.

Author's Checklist

  • [ ]

How to test this PR locally

Generate any event for an exposed port and make sure that container metadata is visible.

Related issues

Use cases

Screenshots

Logs

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

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

elasticmachine commented Jun 22, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [jsoriano commented: jenkins run the tests please :crossed_fingers: ]

  • Start Time: 2020-07-02T11:48:05.768+0000

  • Duration: 127 min 46 sec

Test stats 🧪

Test Results
Failed 1
Passed 9698
Skipped 1579
Total 11278

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat Mac OS X / test_rotating_file_inode – test_registrar.Test

    • Age: 1
    • Duration: 4.432
    • Error Details:

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 9 min 14 sec

    • Start Time: 2020-07-02T12:57:27.006+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 1

    • Duration: 0 min 18 sec

    • Start Time: 2020-07-02T13:06:51.653+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-02T13:54:25.593Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-07-02T13:54:25.593Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-07-02T13:54:25.593Z] + FILE=journalbeat/build/coverage/full.cov
[2020-07-02T13:54:25.593Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-07-02T13:54:26.139Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats
[2020-07-02T13:54:26.448Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-02T13:54:26.460Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Lint
[2020-07-02T13:54:26.544Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-02T13:54:26.629Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-02T13:54:26.717Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-02T13:54:26.799Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-02T13:54:26.873Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-02T13:54:26.955Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-02T13:54:27.040Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-02T13:54:27.129Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-02T13:54:27.208Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-02T13:54:27.284Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-02T13:54:27.360Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-02T13:54:27.444Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-02T13:54:27.515Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-02T13:54:27.587Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-02T13:54:27.658Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-02T13:54:27.731Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-02T13:54:27.806Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-02T13:54:27.877Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-02T13:54:27.952Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-02T13:54:28.030Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-02T13:54:28.102Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-02T13:54:28.178Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-02T13:54:28.252Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-02T13:54:28.327Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-02T13:54:28.402Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-02T13:54:28.481Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-02T13:54:28.555Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-02T13:54:28.626Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Packetbeat-oss
[2020-07-02T13:54:28.700Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-02T13:54:28.772Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-02T13:54:28.846Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-02T13:54:28.919Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-02T13:54:28.994Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-02T13:54:29.067Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-02T13:54:29.141Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Filebeat-oss
[2020-07-02T13:54:29.213Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-02T13:54:29.293Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-02T13:54:29.373Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-07-02T13:54:29.447Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-07-02T13:54:29.519Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-02T13:54:29.595Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-07-02T13:54:29.666Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Libbeat-oss
[2020-07-02T13:54:29.743Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-07-02T13:54:29.814Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-07-02T13:54:29.948Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-02T13:54:30.308Z] + cat
[2020-07-02T13:54:30.308Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-02T13:54:30.308Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-02T13:54:36.894Z] runbld>>> runbld started
[2020-07-02T13:54:36.894Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-02T13:54:38.275Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19317' in order of occurrence in the config (last value wins).
[2020-07-02T13:54:39.215Z] runbld>>> Debug logging enabled.
[2020-07-02T13:54:39.475Z] runbld>>> Storing result
[2020-07-02T13:54:39.475Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-02T13:54:39.475Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200702135439-DA7F7D47
[2020-07-02T13:54:39.475Z] runbld>>> Adding system facts.
[2020-07-02T13:54:40.414Z] runbld>>> Adding vcs info for the latest commit:  803482324fffdcf4c359816c8b9fae97c3851bf4
[2020-07-02T13:54:40.414Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-02T13:54:40.414Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-02T13:54:40.414Z] Processing JUnit reports with runbld...
[2020-07-02T13:54:40.414Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-02T13:54:41.024Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-02T13:54:41.024Z] runbld>>> DURATION: 14ms
[2020-07-02T13:54:41.024Z] runbld>>> STDOUT: 40 bytes
[2020-07-02T13:54:41.024Z] runbld>>> STDERR: 49 bytes
[2020-07-02T13:54:41.024Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-02T13:54:41.024Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats
[2020-07-02T13:54:41.962Z] runbld>>> Storing build metadata: 
[2020-07-02T13:54:41.962Z] runbld>>> Adding test report.
[2020-07-02T13:54:41.962Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats
[2020-07-02T13:54:42.901Z] runbld>>> Found 115 test output files
[2020-07-02T13:54:43.471Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-02T13:54:43.471Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-02T13:54:43.471Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-02T13:54:43.471Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-02T13:54:43.732Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-02T13:54:43.732Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-02T13:54:43.732Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-02T13:54:44.675Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 11128 Skipped: 1340
[2020-07-02T13:54:44.934Z] runbld>>> Storing result
[2020-07-02T13:54:44.934Z] runbld>>> FAILURES: 1
[2020-07-02T13:54:45.504Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-02T13:54:45.504Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200702135439-DA7F7D47
[2020-07-02T13:54:45.504Z] runbld>>> Email notification disabled by environment variable.
[2020-07-02T13:54:45.504Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-02T13:54:51.118Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19317
[2020-07-02T13:54:51.222Z] [INFO] getVaultSecret: Getting secrets
[2020-07-02T13:54:51.282Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-02T13:54:52.017Z] + chmod 755 generate-build-data.sh
[2020-07-02T13:54:52.017Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19317/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19317/runs/21 FAILURE 7605989
[2020-07-02T13:54:52.017Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19317/runs/21/steps/?limit=10000 -o steps-info.json
[2020-07-02T13:54:55.245Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19317/runs/21/tests/?status=FAILED -o tests-errors.json
[2020-07-02T13:54:56.588Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19317/runs/21/log/ -o pipeline-log.txt

@andresrc andresrc added the Team:Platforms Label for the Integrations - Platforms team label Jun 22, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 22, 2020
@vjsamuel vjsamuel changed the title Reorder pod and container events to ensure that pod events don't override container events Fix ordering and duplicate configs on autodiscover Jun 24, 2020
@jsoriano jsoriano self-requested a review June 24, 2020 11:06
@jsoriano jsoriano self-assigned this Jun 24, 2020
@jsoriano
Copy link
Member

jenkins, run the tests please

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. I have a couple of questions but in general it looks good.

@jsoriano
Copy link
Member

@vjsamuel failures in CI seem related

@jsoriano jsoriano added needs_backport PR is waiting to be backported to other branches. v7.9.0 labels Jun 24, 2020
@vjsamuel
Copy link
Contributor Author

@vjsamuel failures in CI seem related

Fixed and updated the tests to cover more scenarios.

@jsoriano
Copy link
Member

jenkins run the tests please

@jsoriano
Copy link
Member

jenkins run the tests please

@jsoriano
Copy link
Member

jenkins run the tests again please

@vjsamuel
Copy link
Contributor Author

rebased with master again.

@jsoriano
Copy link
Member

Not sure why CI is failing so much on this branch, doesn't seem related...

jenkins run the tests please

@jsoriano
Copy link
Member

Oh, this branch is going to need another update after #19478

@vjsamuel
Copy link
Contributor Author

vjsamuel commented Jul 1, 2020

@jsoriano can you help close on this please?

@jsoriano
Copy link
Member

jsoriano commented Jul 1, 2020

Could you please update the branch again? #19535 should finally solve the linting issue 🤞

@jsoriano
Copy link
Member

jsoriano commented Jul 2, 2020

jenkins run the tests please 🤞

@jsoriano jsoriano merged commit 58edbb4 into elastic:master Jul 2, 2020
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Jul 2, 2020
jsoriano pushed a commit to jsoriano/beats that referenced this pull request Jul 2, 2020
elastic#18979 introduced a pod level event which is generated after all container events.
The ordering is wrong in that pod events are sent last which would generate a valid
event similar to container events. The ordering needs to be pod first and container
events next so that pod events dont override valid container events. One other issue
was that the pod level hint generates a single config with all hosts and it wont get
over written by container hints causing more than one config to be spun up for the
same hint (one with a container meta and one without).

(cherry picked from commit 58edbb4)
v1v added a commit to v1v/beats that referenced this pull request Jul 3, 2020
…ne-beats

* upstream/master: (35 commits)
  [ci] fix env variable name for xpack filebeats (elastic#19617)
  Cache error responses for cloudfoundry apps metadata (elastic#19181)
  ci: user fixed type of agent (elastic#19625)
  Input v2 cursor testing (elastic#19573)
  Update Jenkinsfile to not inspect removed vendor (elastic#19610)
  Fix ordering and duplicate configs on autodiscover (elastic#19317)
  Prepare input/file for changes in the registrar (elastic#19516)
  Cursor input and manager implementation (elastic#19571)
  [Filebeat] Fix tls mapping in suricata module (elastic#19494)
  [Ingest Manager] Make Agent beta and Constraints experimental (elastic#19586)
  Accept prefix as metric_types for stackdriver metricset in GCP (elastic#19345)
  Implement memlog store operations (elastic#19533)
  introduce journalbeat/pkg in order to provide reusable shared code (elastic#19581)
  Add descriptions to HAProxy fields in Metricbeat (elastic#19561)
  ci: apm-server-update trigered only on upstream, comments, and manual triggered (elastic#19590)
  ci: enable upstream triggering on the packaging job (elastic#19589)
  ci: some jjbb improvements (elastic#19588)
  [MetricBeat] set tags correctly if the dimension value is ARN (elastic#19433)
  [Filebeat] Add default_fields: false to fields.yml in aws module (elastic#19568)
  Add publisher implementation for stateful inputs (elastic#19530)
  ...
jsoriano added a commit that referenced this pull request Jul 6, 2020
#18979 introduced a pod level event which is generated after all container events.
The ordering is wrong in that pod events are sent last which would generate a valid
event similar to container events. The ordering needs to be pod first and container
events next so that pod events dont override valid container events. One other issue
was that the pod level hint generates a single config with all hosts and it wont get
over written by container hints causing more than one config to be spun up for the
same hint (one with a container meta and one without).

(cherry picked from commit 58edbb4)

Co-authored-by: Vijay Samuel <vjsamuel@ebay.com>
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
elastic#18979 introduced a pod level event which is generated after all container events.
The ordering is wrong in that pod events are sent last which would generate a valid
event similar to container events. The ordering needs to be pod first and container
events next so that pod events dont override valid container events. One other issue
was that the pod level hint generates a single config with all hosts and it wont get
over written by container hints causing more than one config to be spun up for the
same hint (one with a container meta and one without).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platforms Label for the Integrations - Platforms team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants