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

[ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. #21160

Merged
merged 10 commits into from
Sep 23, 2020

Conversation

marc-gr
Copy link
Contributor

@marc-gr marc-gr commented Sep 18, 2020

What does this PR do?

Added related.hosts to capture all hostnames and host identifiers on an event.

Why is it important?

To keep the modules up to date with ecs 1.6

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

  • rsa2elk modules
  • Filebeat panw
  • Filebeat osquery
  • Filebeat system
  • Filebeat microsoft/defender_atp
  • Filebeat suricat
  • Filebeat cisco

Related issues

@marc-gr marc-gr added enhancement in progress Pull request is currently in progress. Team:SIEM ecs v7.10.0 labels Sep 18, 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 Sep 18, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 18, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21160 updated]

  • Start Time: 2020-09-23T13:26:30.227+0000

  • Duration: 74 min 55 sec

Test stats 🧪

Test Results
Failed 1
Passed 5629
Skipped 825
Total 6455

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat oss / test_default_settings – filebeat.tests.system.test_autodiscover.TestAutodiscover

    • Age: 1
    • Duration: 90.004
    • Error Details: Failed: Timeout >90.0s

Steps errors

Expand to view the steps failures

  • Name: Mage build test
    • Description: mage build test

    • Duration: 31 min 0 sec

    • Start Time: 2020-09-23T13:56:44.312+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-23T14:38:39.945Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-09-23T14:38:39.945Z]  OS/Arch:           linux/amd64
[2020-09-23T14:38:39.945Z]  Experimental:      false
[2020-09-23T14:38:39.945Z] 
[2020-09-23T14:38:39.945Z] Server: Docker Engine - Community
[2020-09-23T14:38:39.945Z]  Engine:
[2020-09-23T14:38:39.945Z]   Version:          19.03.13
[2020-09-23T14:38:39.945Z]   API version:      1.40 (minimum version 1.12)
[2020-09-23T14:38:39.945Z]   Go version:       go1.13.15
[2020-09-23T14:38:39.945Z]   Git commit:       4484c46d9d
[2020-09-23T14:38:39.945Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-09-23T14:38:39.945Z]   OS/Arch:          linux/amd64
[2020-09-23T14:38:39.945Z]   Experimental:     false
[2020-09-23T14:38:39.945Z]  containerd:
[2020-09-23T14:38:39.945Z]   Version:          1.3.7
[2020-09-23T14:38:39.945Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-09-23T14:38:39.945Z]  runc:
[2020-09-23T14:38:39.945Z]   Version:          1.0.0-rc10
[2020-09-23T14:38:39.945Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-09-23T14:38:39.945Z]  docker-init:
[2020-09-23T14:38:39.945Z]   Version:          0.18.0
[2020-09-23T14:38:39.945Z]   GitCommit:        fec3683
[2020-09-23T14:38:39.945Z] Unable to find image 'alpine:3.4' locally
[2020-09-23T14:38:40.521Z] 3.4: Pulling from library/alpine
[2020-09-23T14:38:40.784Z] c1e54eec4b57: Pulling fs layer
[2020-09-23T14:38:41.046Z] c1e54eec4b57: Verifying Checksum
[2020-09-23T14:38:41.046Z] c1e54eec4b57: Download complete
[2020-09-23T14:38:41.309Z] c1e54eec4b57: Pull complete
[2020-09-23T14:38:41.309Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2020-09-23T14:38:41.309Z] Status: Downloaded newer image for alpine:3.4
[2020-09-23T14:38:43.539Z] + python .ci/scripts/pre_archive_test.py
[2020-09-23T14:38:45.461Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2020-09-23T14:38:45.473Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/build
[2020-09-23T14:38:45.499Z] Recording test results
[2020-09-23T14:38:47.201Z] Stashed 4 file(s)
[2020-09-23T14:38:47.212Z] Archiving artifacts
[2020-09-23T14:38:47.971Z] + python .ci/scripts/search_system_tests.py
[2020-09-23T14:38:47.989Z] [INFO] system-tests='build/x-pack/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-09-23T14:38:48.324Z] + tar --version
[2020-09-23T14:38:48.660Z] + tar --exclude=x-pack-filebeat--system-tests-linux.tgz -czf x-pack-filebeat--system-tests-linux.tgz build/x-pack/filebeat/build/system-tests
[2020-09-23T14:39:10.662Z] Archiving artifacts
[2020-09-23T14:39:34.565Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-09-23T14:39:34.587Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-09-23T14:39:34.676Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21160-5/source/source.tgz
[2020-09-23T14:39:34.705Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21160-5/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21160/source.tgz
[2020-09-23T14:39:49.454Z] + tar --version
[2020-09-23T14:39:49.765Z] + tar -xpf source.tgz
[2020-09-23T14:40:02.335Z] + rm source.tgz
[2020-09-23T14:40:02.349Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats
[2020-09-23T14:40:02.372Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Lint
[2020-09-23T14:40:02.466Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-23T14:40:02.545Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-23T14:40:02.624Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-23T14:40:02.706Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-23T14:40:02.784Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-oss
[2020-09-23T14:40:02.863Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-23T14:40:03.267Z] + cat
[2020-09-23T14:40:03.267Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-23T14:40:03.267Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-23T14:40:09.878Z] runbld>>> runbld started
[2020-09-23T14:40:09.878Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-23T14:40:12.430Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-23T14:40:12.430Z] runbld>>> Matches in the system config:
[2020-09-23T14:40:12.430Z] runbld>>> - Matched ^elastic\+beats
[2020-09-23T14:40:12.430Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-23T14:40:13.376Z] runbld>>> Debug logging enabled.
[2020-09-23T14:40:13.376Z] runbld>>> Storing result
[2020-09-23T14:40:13.642Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-23T14:40:13.642Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200923144013-D6919235
[2020-09-23T14:40:13.642Z] runbld>>> Adding system facts.
[2020-09-23T14:40:15.034Z] runbld>>> Adding vcs info for the latest commit:  c39bda110edcf6cf643169c7eaf825e9d7a4d3b7
[2020-09-23T14:40:15.034Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-23T14:40:15.034Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-23T14:40:15.034Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-23T14:40:15.034Z] Processing JUnit reports with runbld...
[2020-09-23T14:40:15.296Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-23T14:40:15.296Z] runbld>>> DURATION: 31ms
[2020-09-23T14:40:15.296Z] runbld>>> STDOUT: 40 bytes
[2020-09-23T14:40:15.296Z] runbld>>> STDERR: 49 bytes
[2020-09-23T14:40:15.296Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-23T14:40:15.296Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21160
[2020-09-23T14:40:16.242Z] runbld>>> Storing build metadata: 
[2020-09-23T14:40:16.242Z] runbld>>> Adding test report.
[2020-09-23T14:40:16.242Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21160/src/github.com/elastic/beats
[2020-09-23T14:40:17.188Z] runbld>>> Found 16 test output files
[2020-09-23T14:40:18.580Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 6455 Skipped: 799
[2020-09-23T14:40:18.580Z] runbld>>> Storing result
[2020-09-23T14:40:18.580Z] runbld>>> FAILURES: 1
[2020-09-23T14:40:19.154Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-23T14:40:19.154Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200923144013-D6919235
[2020-09-23T14:40:19.154Z] runbld>>> Email notification disabled by environment variable.
[2020-09-23T14:40:19.154Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-23T14:40:24.632Z] Running on worker-1244230 in /var/lib/jenkins/workspace/Beats_beats_PR-21160
[2020-09-23T14:40:24.747Z] [INFO] getVaultSecret: Getting secrets
[2020-09-23T14:40:24.843Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-23T14:40:26.891Z] + chmod 755 generate-build-data.sh
[2020-09-23T14:40:26.892Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21160/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21160/runs/5 FAILURE 4435265
[2020-09-23T14:40:26.892Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21160/runs/5/steps/?limit=10000 -o steps-info.json
[2020-09-23T14:40:28.346Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21160/runs/5/tests/?status=FAILED -o tests-errors.json
[2020-09-23T14:40:29.047Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21160/runs/5/log/ -o pipeline-log.txt

@marc-gr marc-gr added review and removed in progress Pull request is currently in progress. labels Sep 21, 2020
@marc-gr marc-gr requested a review from a team September 21, 2020 08:39
Copy link
Contributor

@leehinman leehinman left a comment

Choose a reason for hiding this comment

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

LGTM

@marc-gr marc-gr merged commit 3fb01e3 into elastic:master Sep 23, 2020
@marc-gr marc-gr deleted the ecs-hosts branch September 23, 2020 15:30
v1v added a commit to v1v/beats that referenced this pull request Sep 24, 2020
…ne-2.0-arm

* upstream/master: (29 commits)
  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)
  Add acceptable event log keys to winlog (elastic#21205)
  Add elastic-agent to gitignore (elastic#21219)
  Add cloudfoundry tags to events (elastic#21177)
  [Ingest Manager] Agent includes pgp file (elastic#19480)
  Add compatibility note about ingress-controller-v0.34.1 (elastic#21209)
  [Ingest Manager] Support for UPGRADE_ACTION (elastic#21002)
  Fix libbeat.output.*.bytes metrics of Elasticsearch output (elastic#21197)
  [packaging] use docker.elastic.co/ubi8/ubi-minimal (elastic#21154)
  Add host inventory metrics to system module (elastic#20415)
  [Filebeat][Azure Module] Fixing event.outcome from result_type issue (elastic#20998)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 24, 2020
…ne-2.0

* upstream/master: (33 commits)
  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)
  Add acceptable event log keys to winlog (elastic#21205)
  Add elastic-agent to gitignore (elastic#21219)
  Add cloudfoundry tags to events (elastic#21177)
  [Ingest Manager] Agent includes pgp file (elastic#19480)
  Add compatibility note about ingress-controller-v0.34.1 (elastic#21209)
  [Ingest Manager] Support for UPGRADE_ACTION (elastic#21002)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 24, 2020
…-refactor

* upstream/master:
  [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)
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)
  ...
marc-gr added a commit to marc-gr/beats that referenced this pull request Sep 29, 2020
…rs on an event. (elastic#21160)

* Add related.hosts to panos

* Add related.hosts to osquery

* Add related.hosts to system

* Add related.hosts to defender atp

* Add related.hosts to cisco

* Add related.hosts to suricata

* Use allow_duplicates: false to remove duplicate hosts

* Add related.hosts to rsa2elk modules

* Add changelog entry

* Add checks to avoid empty strings

(cherry picked from commit 3fb01e3)
marc-gr added a commit that referenced this pull request Sep 29, 2020
…rs on an event. (#21160) (#21257)

* Add related.hosts to panos

* Add related.hosts to osquery

* Add related.hosts to system

* Add related.hosts to defender atp

* Add related.hosts to cisco

* Add related.hosts to suricata

* Use allow_duplicates: false to remove duplicate hosts

* Add related.hosts to rsa2elk modules

* Add changelog entry

* Add checks to avoid empty strings

(cherry picked from commit 3fb01e3)
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.

3 participants