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

Cherry-pick #20912 to 7.x: [Filebeat] add panos type and sub_type #21102

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

leehinman
Copy link
Contributor

@leehinman leehinman commented Sep 15, 2020

Cherry-pick of PR #20912 to 7.x branch. Original message:

What does this PR do?

adds panw.panos.type & panw.panos.sub_type fields

Why is it important?

Original type & sub_type may be useful instead of event.category &
event.type that have ECS specified values.

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.

How to test this PR locally

TESTING_FILEBEAT_MODULES=panw mage -v pythonIntegTest

* add panos type and sub_type

- add panw.panos.type
- add panw.panos.sub_type

(cherry picked from commit d14c6a1)
@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 15, 2020
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21102 opened]

  • Start Time: 2020-09-15T17:42:11.991+0000

  • Duration: 55 min 56 sec

Test stats 🧪

Test Results
Failed 1
Passed 5589
Skipped 833
Total 6423

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: 29 min 14 sec

    • Start Time: 2020-09-15T18:06:31.324+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-15T18:35:46.297Z]  OS/Arch:           linux/amd64
[2020-09-15T18:35:46.298Z]  Experimental:      false
[2020-09-15T18:35:46.298Z] 
[2020-09-15T18:35:46.298Z] Server: Docker Engine - Community
[2020-09-15T18:35:46.298Z]  Engine:
[2020-09-15T18:35:46.298Z]   Version:          19.03.12
[2020-09-15T18:35:46.298Z]   API version:      1.40 (minimum version 1.12)
[2020-09-15T18:35:46.298Z]   Go version:       go1.13.10
[2020-09-15T18:35:46.298Z]   Git commit:       48a66213fe
[2020-09-15T18:35:46.298Z]   Built:            Mon Jun 22 15:44:07 2020
[2020-09-15T18:35:46.298Z]   OS/Arch:          linux/amd64
[2020-09-15T18:35:46.298Z]   Experimental:     false
[2020-09-15T18:35:46.298Z]  containerd:
[2020-09-15T18:35:46.298Z]   Version:          1.2.13
[2020-09-15T18:35:46.298Z]   GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
[2020-09-15T18:35:46.298Z]  runc:
[2020-09-15T18:35:46.298Z]   Version:          1.0.0-rc10
[2020-09-15T18:35:46.298Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-09-15T18:35:46.298Z]  docker-init:
[2020-09-15T18:35:46.298Z]   Version:          0.18.0
[2020-09-15T18:35:46.298Z]   GitCommit:        fec3683
[2020-09-15T18:35:46.298Z] Unable to find image 'alpine:3.4' locally
[2020-09-15T18:35:46.869Z] 3.4: Pulling from library/alpine
[2020-09-15T18:35:47.130Z] c1e54eec4b57: Pulling fs layer
[2020-09-15T18:35:47.393Z] c1e54eec4b57: Verifying Checksum
[2020-09-15T18:35:47.393Z] c1e54eec4b57: Download complete
[2020-09-15T18:35:47.655Z] c1e54eec4b57: Pull complete
[2020-09-15T18:35:47.655Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2020-09-15T18:35:47.655Z] Status: Downloaded newer image for alpine:3.4
[2020-09-15T18:35:49.374Z] + python .ci/scripts/pre_archive_test.py
[2020-09-15T18:35:50.318Z] Copy ./filebeat/build into build/filebeat/build
[2020-09-15T18:35:50.345Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/build
[2020-09-15T18:35:50.402Z] Recording test results
[2020-09-15T18:35:52.517Z] Stashed 4 file(s)
[2020-09-15T18:35:52.539Z] Archiving artifacts
[2020-09-15T18:35:53.320Z] + python .ci/scripts/search_system_tests.py
[2020-09-15T18:35:53.366Z] [INFO] system-tests='build/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-09-15T18:35:53.762Z] + tar --version
[2020-09-15T18:35:54.187Z] + tar --exclude=filebeat--system-tests-linux.tgz -czf filebeat--system-tests-linux.tgz build/filebeat/build/system-tests
[2020-09-15T18:35:59.588Z] Archiving artifacts
[2020-09-15T18:36:03.667Z] Failed in branch Filebeat oss
[2020-09-15T18:36:15.585Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-09-15T18:36:15.625Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-09-15T18:36:15.707Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21102-1/source/source.tgz
[2020-09-15T18:36:15.727Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21102-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21102/source.tgz
[2020-09-15T18:36:31.841Z] + tar --version
[2020-09-15T18:36:32.167Z] + tar -xpf source.tgz
[2020-09-15T18:36:42.641Z] + rm source.tgz
[2020-09-15T18:36:42.697Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats
[2020-09-15T18:36:42.786Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Lint
[2020-09-15T18:36:43.152Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-15T18:36:43.474Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-15T18:36:43.842Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-15T18:36:44.221Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-15T18:36:44.534Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-15T18:36:44.788Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats/Filebeat-oss
[2020-09-15T18:36:45.321Z] + cat
[2020-09-15T18:36:45.321Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-15T18:36:45.321Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-15T18:36:53.525Z] runbld>>> runbld started
[2020-09-15T18:36:53.525Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-15T18:36:54.474Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-15T18:36:54.474Z] runbld>>> Matches in the system config:
[2020-09-15T18:36:54.474Z] runbld>>> - Matched ^elastic\+beats
[2020-09-15T18:36:54.474Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-15T18:36:55.871Z] runbld>>> Debug logging enabled.
[2020-09-15T18:36:55.871Z] runbld>>> Storing result
[2020-09-15T18:36:55.871Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-15T18:36:55.871Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200915183655-A0B8ACDE
[2020-09-15T18:36:55.871Z] runbld>>> Adding system facts.
[2020-09-15T18:36:57.269Z] runbld>>> Adding vcs info for the latest commit:  b174365009b7b01481178f64801d1f22d1601025
[2020-09-15T18:36:57.269Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-15T18:36:57.269Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-15T18:36:57.269Z] Processing JUnit reports with runbld...
[2020-09-15T18:36:57.269Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-15T18:36:57.535Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-15T18:36:57.535Z] runbld>>> DURATION: 20ms
[2020-09-15T18:36:57.535Z] runbld>>> STDOUT: 40 bytes
[2020-09-15T18:36:57.535Z] runbld>>> STDERR: 49 bytes
[2020-09-15T18:36:57.535Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-15T18:36:57.536Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21102
[2020-09-15T18:36:58.491Z] runbld>>> Storing build metadata: 
[2020-09-15T18:36:58.491Z] runbld>>> Adding test report.
[2020-09-15T18:36:58.491Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21102/src/github.com/elastic/beats
[2020-09-15T18:36:59.446Z] runbld>>> Found 16 test output files
[2020-09-15T18:37:00.846Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 6423 Skipped: 807
[2020-09-15T18:37:00.846Z] runbld>>> Storing result
[2020-09-15T18:37:00.846Z] runbld>>> FAILURES: 1
[2020-09-15T18:37:01.420Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-15T18:37:01.420Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200915183655-A0B8ACDE
[2020-09-15T18:37:01.420Z] runbld>>> Email notification disabled by environment variable.
[2020-09-15T18:37:01.420Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-15T18:37:06.970Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21102
[2020-09-15T18:37:07.277Z] [INFO] getVaultSecret: Getting secrets
[2020-09-15T18:37:07.370Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-15T18:37:08.490Z] + chmod 755 generate-build-data.sh
[2020-09-15T18:37:08.490Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21102/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21102/runs/1 FAILURE 3296225
[2020-09-15T18:37:08.490Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21102/runs/1/steps/?limit=10000 -o steps-info.json
[2020-09-15T18:37:09.041Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21102/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-09-15T18:37:09.292Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21102/runs/1/log/ -o pipeline-log.txt

@leehinman leehinman merged commit 111ad83 into elastic:7.x Sep 16, 2020
@leehinman leehinman deleted the backport_20912_7.x branch October 5, 2020 19:06
@zube zube bot removed the [zube]: Done label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants