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

[Filebeat][New Fileset] Cisco Umbrella support #21504

Merged
merged 3 commits into from
Oct 5, 2020

Conversation

P1llus
Copy link
Member

@P1llus P1llus commented Oct 4, 2020

What does this PR do?

This adds support for Cisco Umbrella logs to filebeat

Why is it important?

Adds support for new OOTB integrations for filebeat

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

@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 Oct 4, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 4, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21504 updated]

  • Start Time: 2020-10-05T11:00:27.615+0000

  • Duration: 61 min 36 sec

Test stats 🧪

Test Results
Failed 0
Passed 3549
Skipped 556
Total 4105

Steps errors

Expand to view the steps failures

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

    • Duration: 8 min 42 sec

    • Start Time: 2020-10-05T11:27:37.690+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-05T11:59:23.099Z] c1e54eec4b57: Download complete
[2020-10-05T11:59:23.360Z] c1e54eec4b57: Pull complete
[2020-10-05T11:59:23.360Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2020-10-05T11:59:23.360Z] Status: Downloaded newer image for alpine:3.4
[2020-10-05T11:59:25.582Z] + python .ci/scripts/pre_archive_test.py
[2020-10-05T11:59:27.504Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2020-10-05T11:59:27.515Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/build
[2020-10-05T11:59:27.528Z] WARNING: Unknown parameter(s) found for class type 'hudson.tasks.junit.pipeline.JUnitResultsStep': id,stashedTestReports
[2020-10-05T11:59:27.531Z] Recording test results
[2020-10-05T11:59:29.558Z] Stashed 4 file(s)
[2020-10-05T11:59:29.569Z] Archiving artifacts
[2020-10-05T11:59:30.225Z] + python .ci/scripts/search_system_tests.py
[2020-10-05T11:59:30.242Z] [INFO] system-tests='build/x-pack/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-10-05T11:59:30.552Z] + tar --version
[2020-10-05T11:59:30.862Z] + 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-10-05T11:59:52.851Z] Archiving artifacts
[2020-10-05T12:00:05.704Z] Client: Docker Engine - Community
[2020-10-05T12:00:05.704Z]  Version:           19.03.13
[2020-10-05T12:00:05.704Z]  API version:       1.40
[2020-10-05T12:00:05.704Z]  Go version:        go1.13.15
[2020-10-05T12:00:05.704Z]  Git commit:        4484c46d9d
[2020-10-05T12:00:05.704Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-10-05T12:00:05.704Z]  OS/Arch:           linux/amd64
[2020-10-05T12:00:05.704Z]  Experimental:      false
[2020-10-05T12:00:05.704Z] 
[2020-10-05T12:00:05.704Z] Server: Docker Engine - Community
[2020-10-05T12:00:05.704Z]  Engine:
[2020-10-05T12:00:05.704Z]   Version:          19.03.13
[2020-10-05T12:00:05.704Z]   API version:      1.40 (minimum version 1.12)
[2020-10-05T12:00:05.704Z]   Go version:       go1.13.15
[2020-10-05T12:00:05.704Z]   Git commit:       4484c46d9d
[2020-10-05T12:00:05.704Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-10-05T12:00:05.704Z]   OS/Arch:          linux/amd64
[2020-10-05T12:00:05.704Z]   Experimental:     false
[2020-10-05T12:00:05.704Z]  containerd:
[2020-10-05T12:00:05.704Z]   Version:          1.3.7
[2020-10-05T12:00:05.704Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-10-05T12:00:05.704Z]  runc:
[2020-10-05T12:00:05.704Z]   Version:          1.0.0-rc10
[2020-10-05T12:00:05.704Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-05T12:00:05.704Z]  docker-init:
[2020-10-05T12:00:05.704Z]   Version:          0.18.0
[2020-10-05T12:00:05.704Z]   GitCommit:        fec3683
[2020-10-05T12:00:18.379Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-05T12:00:18.389Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-05T12:00:18.445Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21504-3/source/source.tgz
[2020-10-05T12:00:18.466Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21504-3/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21504/source.tgz
[2020-10-05T12:00:29.679Z] + tar --version
[2020-10-05T12:00:29.995Z] + tar -xpf source.tgz
[2020-10-05T12:00:42.556Z] + rm source.tgz
[2020-10-05T12:00:42.620Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats
[2020-10-05T12:00:42.634Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/uncategorized-1601897021671
[2020-10-05T12:00:42.925Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/filebeat-build-1601897724446
[2020-10-05T12:00:43.138Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019-1601897887443
[2020-10-05T12:00:43.186Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/filebeat-windows-windows-2019-1601897896213
[2020-10-05T12:00:43.228Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats/x-pack-filebeat-build-1601899169149
[2020-10-05T12:00:43.574Z] + cat
[2020-10-05T12:00:43.574Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-05T12:00:43.574Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-05T12:00:50.192Z] runbld>>> runbld started
[2020-10-05T12:00:50.192Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-05T12:00:51.823Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-05T12:00:51.823Z] runbld>>> Matches in the system config:
[2020-10-05T12:00:51.823Z] runbld>>> - Matched ^elastic\+beats
[2020-10-05T12:00:51.823Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-05T12:00:53.211Z] runbld>>> Debug logging enabled.
[2020-10-05T12:00:53.211Z] runbld>>> Storing result
[2020-10-05T12:00:53.211Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-05T12:00:53.211Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005120052-FCB9C25E
[2020-10-05T12:00:53.211Z] runbld>>> Adding system facts.
[2020-10-05T12:00:54.158Z] runbld>>> Adding vcs info for the latest commit:  6ce04780a40a85c83ad2ce7f4370a64fa68d9a82
[2020-10-05T12:00:54.158Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-05T12:00:54.158Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-05T12:00:54.158Z] Processing JUnit reports with runbld...
[2020-10-05T12:00:54.158Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-05T12:00:54.731Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-05T12:00:54.731Z] runbld>>> DURATION: 37ms
[2020-10-05T12:00:54.731Z] runbld>>> STDOUT: 40 bytes
[2020-10-05T12:00:54.731Z] runbld>>> STDERR: 49 bytes
[2020-10-05T12:00:54.731Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-05T12:00:54.731Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21504
[2020-10-05T12:00:55.677Z] runbld>>> Storing build metadata: 
[2020-10-05T12:00:55.677Z] runbld>>> Adding test report.
[2020-10-05T12:00:55.677Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21504/src/github.com/elastic/beats
[2020-10-05T12:00:56.251Z] runbld>>> Found 10 test output files
[2020-10-05T12:00:57.650Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 4105 Skipped: 534
[2020-10-05T12:00:57.650Z] runbld>>> Storing result
[2020-10-05T12:00:57.650Z] runbld>>> FAILURES: 0
[2020-10-05T12:00:57.911Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-05T12:00:57.911Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005120052-FCB9C25E
[2020-10-05T12:00:57.911Z] runbld>>> Email notification disabled by environment variable.
[2020-10-05T12:00:57.911Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-05T12:01:03.417Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21504
[2020-10-05T12:01:03.496Z] [INFO] getVaultSecret: Getting secrets
[2020-10-05T12:01:03.573Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-05T12:01:04.198Z] + chmod 755 generate-build-data.sh
[2020-10-05T12:01:04.198Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21504/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21504/runs/3 FAILURE 3636323
[2020-10-05T12:01:04.198Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21504/runs/3/steps/?limit=10000 -o steps-info.json
[2020-10-05T12:01:05.542Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21504/runs/3/tests/?status=FAILED -o tests-errors.json
[2020-10-05T12:01:05.792Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21504/runs/3/log/ -o pipeline-log.txt

Copy link
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

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

Just some suggestions for docs

filebeat/docs/modules/cisco.asciidoc Outdated Show resolved Hide resolved
filebeat/docs/modules/cisco.asciidoc Outdated Show resolved Hide resolved
filebeat/docs/modules/cisco.asciidoc Outdated Show resolved Hide resolved
filebeat/docs/modules/cisco.asciidoc Outdated Show resolved Hide resolved
filebeat/docs/modules/cisco.asciidoc Outdated Show resolved Hide resolved
filebeat/docs/modules/cisco.asciidoc Show resolved Hide resolved
@P1llus
Copy link
Member Author

P1llus commented Oct 5, 2020

Thanks for the pointers @adriansr, the doc changes totally made sense! Added them in :)

@marc-gr marc-gr merged commit 641d02f into elastic:master Oct 5, 2020
@marc-gr marc-gr added the v7.10.0 label Oct 5, 2020
v1v added a commit to v1v/beats that referenced this pull request Oct 5, 2020
* upstream/master: (26 commits)
  [Ingest Manager] Send updating state (elastic#21461)
  [Filebeat][New Fileset] Cisco Umbrella support (elastic#21504)
  [Ingest Manager] Download asc from artifact store specified in spec (elastic#21488)
  Implementation of fileProspector (elastic#21479)
  [Metricbeat] Add latency config option into aws module (elastic#20875)
  Skip filestream flaky tests (elastic#21490)
  Ignore unsupported metrics in the azure module (elastic#21486)
  Do not run symlink tests on Windows (elastic#21472)
  Map `cloud.account.id` to azure sub id (elastic#21483)
  Add support for app_state metricset (elastic#20639)
  Include original error when metricbeat fails to connect with Kafka (elastic#21484)
  Prompt only when agent is already enrolled (elastic#21473)
  Fix leftover delpoyment example (elastic#21474)
  Bump version to ECS 1.6 in modules without ECS updates (elastic#21455)
  Clarify input type configuration options (elastic#19284)
  Increase index pattern size check to 10MiB (elastic#21487)
  Migrate S3 Input to Filebeat Input V2 (elastic#20005)
  [libbeat] Add configurable exponential backoff for disk queue write errors (elastic#21493)
  Revert "Revert "[JJBB] Set shallow cloning to 10 (elastic#21409)" (elastic#21447)" (elastic#21467)
  Fix format of debug messages in tlscommon (elastic#21482)
  ...
marc-gr pushed a commit to marc-gr/beats that referenced this pull request Oct 6, 2020
* initial MVP push for cisco umbrella

* Initial commit for Cisco Umbrella ready for review

* updating some wording in the cisco docs for umbrella

(cherry picked from commit 641d02f)
marc-gr added a commit that referenced this pull request Oct 6, 2020
* initial MVP push for cisco umbrella

* Initial commit for Cisco Umbrella ready for review

* updating some wording in the cisco docs for umbrella

(cherry picked from commit 641d02f)

Co-authored-by: Marius Iversen <pillus@chasenet.org>
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.

Cisco Umbrella Filebeat Module
4 participants