Skip to content

Cherry-pick #20168 to 7.x: [Filebeat] Update Filebeat module golden log files#20197

Merged
andrewkroh merged 1 commit intoelastic:7.xfrom
andrewkroh:backport_20168_7.x
Jul 23, 2020
Merged

Cherry-pick #20168 to 7.x: [Filebeat] Update Filebeat module golden log files#20197
andrewkroh merged 1 commit intoelastic:7.xfrom
andrewkroh:backport_20168_7.x

Conversation

@andrewkroh
Copy link
Copy Markdown
Member

@andrewkroh andrewkroh commented Jul 23, 2020

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

What does this PR do?

The Elasticsearch user_agent processor was updated in elastic/elasticsearch#59697

Why is it important?

It fixes tests that are failing.

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.

The Elasticsearch user_agent processor was updated in elastic/elasticsearch#59697

(cherry picked from commit 3238961)
@elasticmachine
Copy link
Copy Markdown
Contributor

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 Jul 23, 2020
@botelastic
Copy link
Copy Markdown

botelastic bot commented Jul 23, 2020

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20197 opened]

  • Start Time: 2020-07-23T12:07:28.609+0000

  • Duration: 70 min 9 sec

Test stats 🧪

Test Results
Failed 1
Passed 3537
Skipped 526
Total 4064

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat x-pack / test_fileset_file_095_cylance – test_xpack_modules.XPackTest
    • Age: 1
    • Duration: 9.494
    • Error Details: The following expected object doesn't match:
      Diff:
      {'values_changed': {"root['rsa.time.event_time']": {'new_value': '2020-07-25T11:47:41.000Z', 'old_value': '2019-07-25T11:47:41.000Z'}, "root['@timestamp']": {'new_value': '2020-07-25T11:47:41.000Z', 'old_value': '2019-07-25T11:47:41.000Z'}}}, full object:
      {'rsa.internal.messageid': 'CylancePROTECT', 'rsa.investigations.event_cat': 1804020000, 'rsa.investigations.event_cat_name': 'Network.Devices.Removals', 'rsa.time.event_time': '2020-07-25T11:47:41.000Z', 'rsa.db.index': 'mpo', 'rsa.network.eth_host': '01:00:5e:ee:e8:77', 'rsa.network.alias_host': ['ntium4450.www5.localdomain'], 'rsa.misc.node': 'vol', 'rsa.misc.event_type': 'DeviceRemove', 'rsa.misc.OS': 'animid', 'log.offset': 10027, 'source.ip': ['10.22.94.10'], 'fileset.name': 'protect', 'tags': ['cylance.protect', 'forwarded'], 'input.type': 'log', 'observer.product': 'Protect', 'observer.vendor': 'Cylance', 'observer.type': 'Anti-Virus', '@timestamp': '2020-07-25T11:47:41.000Z', 'related.ip': ['10.22.94.10'], 'related.user': ['ssusci'], 'service.type': 'cylance', 'host.name': 'ntium4450.www5.localdomain', 'host.mac': '01:00:5e:ee:e8:77', 'event.original': '25-Jul-2017 9:47:41 very-high idolor3916.www5.home tas <tasun 25T09:47:41.duntutla ntium4450.www5.localdomain CylancePROTECT Event Name:DeviceRemove, Device Name:vol, Agent Version:oremquel, IP Address: (10.22.94.10), MAC Address: (01:00:5e:ee:e8:77), Logged On Users: (ssusci), OS:animid, Zone Names:mpo', 'event.code': 'CylancePROTECT', 'event.module': 'cylance', 'event.action': 'DeviceRemove', 'event.dataset': 'cylance.protect', 'user.name': 'ssusci'}
      -------------------- >> begin captured stdout << ---------------------
      Using elasticsearch: http://elasticsearch:9200
      Testing cylance/protect on /go/src/github.com/elastic/beats/x-pack/filebeat/module/cylance/protect/test/generated.log

--------------------- >> end captured stdout << ----------------------

Steps errors

Expand to view the steps failures

  • Name: Mage update build test

    • Description: mage update build test

    • Duration: 35 min 7 sec

    • Start Time: 2020-07-23T12:31:24.694+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: The specified commit does not exist in the specified repository

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-23T12:31:38.263+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-23T13:07:54.552Z] Python 3.8.2
[2020-07-23T13:07:54.552Z] 
[2020-07-23T13:07:54.552Z] C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats>where python 
[2020-07-23T13:07:54.552Z] C:\Python38\python.exe
[2020-07-23T13:07:54.552Z] C:\Python27\python.exe
[2020-07-23T13:07:54.649Z] Running in C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\x-pack\filebeat
[2020-07-23T13:07:54.996Z] 
[2020-07-23T13:07:54.996Z] C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\x-pack\filebeat>mage  build unitTest 
[2020-07-23T13:09:16.427Z] >> build: Building filebeat
[2020-07-23T13:11:08.016Z] >> go test: Unit Testing
[2020-07-23T13:14:44.532Z] SUMMARY:
[2020-07-23T13:14:44.532Z]   Fail:     0
[2020-07-23T13:14:44.532Z]   Skip:     7
[2020-07-23T13:14:44.532Z]   Pass:     548
[2020-07-23T13:14:44.532Z]   Packages: 20
[2020-07-23T13:14:44.532Z]   Duration: 3m35.2938978s
[2020-07-23T13:14:44.532Z]   Coverage Report: C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\x-pack\filebeat\build\TEST-go-unit.html
[2020-07-23T13:14:44.532Z]   JUnit Report:    C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\x-pack\filebeat\build\TEST-go-unit.xml
[2020-07-23T13:14:44.532Z]   Output File:     C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\x-pack\filebeat\build\TEST-go-unit.out
[2020-07-23T13:14:44.532Z] >> go test: Unit Test Passed
[2020-07-23T13:15:40.774Z] >> python test: Unit Testing
[2020-07-23T13:15:53.017Z] WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
[2020-07-23T13:15:53.017Z] You should consider upgrading via the 'python -m pip install --upgrade pip' command.
[2020-07-23T13:17:00.840Z] WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
[2020-07-23T13:17:00.840Z] You should consider upgrading via the 'python -m pip install --upgrade pip' command.
[2020-07-23T13:17:05.548Z] .......SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
[2020-07-23T13:17:05.548Z] [success] 19.43% test_http_endpoint.Test.test_http_endpoint_request: 2.1075s
[2020-07-23T13:17:05.548Z] [success] 17.53% test_http_endpoint.Test.test_http_endpoint_malformed_json: 1.9019s
[2020-07-23T13:17:05.548Z] [success] 15.81% test_http_endpoint.Test.test_http_endpoint_get_request: 1.7156s
[2020-07-23T13:17:05.548Z] [success] 15.32% test_http_endpoint.Test.test_http_endpoint_wrong_auth_value: 1.6617s
[2020-07-23T13:17:05.548Z] [success] 14.88% test_http_endpoint.Test.test_http_endpoint_wrong_content_header: 1.6140s
[2020-07-23T13:17:05.548Z] [success] 14.59% test_http_endpoint.Test.test_http_endpoint_empty_body: 1.5830s
[2020-07-23T13:17:05.548Z] [success] 2.44% test_http_endpoint.Test.test_http_endpoint_missing_auth_value: 0.2652s
[2020-07-23T13:17:05.548Z] ----------------------------------------------------------------------
[2020-07-23T13:17:05.548Z] Ran 128 tests in 10.867s
[2020-07-23T13:17:05.548Z] 
[2020-07-23T13:17:05.548Z] OK (SKIP=121)
[2020-07-23T13:17:05.548Z] >> python test: Unit Testing Complete
[2020-07-23T13:17:06.201Z] 
[2020-07-23T13:17:06.201Z] C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats>python .ci/scripts/pre_archive_test.py 
[2020-07-23T13:17:06.767Z] Copy .\x-pack\filebeat\build into build\x-pack\filebeat\build
[2020-07-23T13:17:06.799Z] Running in C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats\build
[2020-07-23T13:17:06.874Z] Recording test results
[2020-07-23T13:17:08.450Z] Stashed 2 file(s)
[2020-07-23T13:17:08.472Z] Archiving artifacts
[2020-07-23T13:17:09.855Z] [INFO] system-tests='build\x-pack\filebeat\build\system-tests'. If no empty then let's create a tarball
[2020-07-23T13:17:10.222Z] 
[2020-07-23T13:17:10.222Z] C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats>tar --version  1>NUL 
[2020-07-23T13:17:10.648Z] 
[2020-07-23T13:17:10.648Z] C:\Users\jenkins\workspace\Beats_beats_PR-20197\src\github.com\elastic\beats>tar --exclude=x-pack-filebeat--system-tests-windows.tgz -czf x-pack-filebeat--system-tests-windows.tgz build\x-pack\filebeat\build\system-tests 
[2020-07-23T13:17:10.758Z] Archiving artifacts
[2020-07-23T13:17:14.324Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats
[2020-07-23T13:17:14.653Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-23T13:17:14.679Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Lint
[2020-07-23T13:17:14.835Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-23T13:17:14.999Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-23T13:17:15.148Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Filebeat-oss
[2020-07-23T13:17:15.298Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-23T13:17:15.481Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-23T13:17:15.962Z] + cat
[2020-07-23T13:17:15.962Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-23T13:17:15.962Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-23T13:17:22.547Z] runbld>>> runbld started
[2020-07-23T13:17:22.547Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-23T13:17:23.508Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20197' in order of occurrence in the config (last value wins).
[2020-07-23T13:17:24.890Z] runbld>>> Debug logging enabled.
[2020-07-23T13:17:24.890Z] runbld>>> Storing result
[2020-07-23T13:17:25.149Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-23T13:17:25.149Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200723131724-F32DA6CE
[2020-07-23T13:17:25.149Z] runbld>>> Adding system facts.
[2020-07-23T13:17:26.098Z] runbld>>> Adding vcs info for the latest commit:  60a2609b23f142be29e9d7b2139a27f812e09218
[2020-07-23T13:17:26.098Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-23T13:17:26.098Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-23T13:17:26.098Z] Processing JUnit reports with runbld...
[2020-07-23T13:17:26.098Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-23T13:17:26.668Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-23T13:17:26.668Z] runbld>>> DURATION: 42ms
[2020-07-23T13:17:26.668Z] runbld>>> STDOUT: 40 bytes
[2020-07-23T13:17:26.668Z] runbld>>> STDERR: 49 bytes
[2020-07-23T13:17:26.668Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-23T13:17:26.668Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats
[2020-07-23T13:17:27.606Z] runbld>>> Storing build metadata: 
[2020-07-23T13:17:27.606Z] runbld>>> Adding test report.
[2020-07-23T13:17:27.606Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20197/src/github.com/elastic/beats
[2020-07-23T13:17:28.546Z] runbld>>> Found 11 test output files
[2020-07-23T13:17:29.484Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 4064 Skipped: 504
[2020-07-23T13:17:29.484Z] runbld>>> Storing result
[2020-07-23T13:17:29.484Z] runbld>>> FAILURES: 1
[2020-07-23T13:17:30.057Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-23T13:17:30.057Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200723131724-F32DA6CE
[2020-07-23T13:17:30.058Z] runbld>>> Email notification disabled by environment variable.
[2020-07-23T13:17:30.058Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-23T13:17:36.062Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20197
[2020-07-23T13:17:36.214Z] [INFO] getVaultSecret: Getting secrets
[2020-07-23T13:17:36.356Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-23T13:17:37.834Z] + chmod 755 generate-build-data.sh
[2020-07-23T13:17:37.834Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20197/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20197/runs/1 FAILURE 4208925
[2020-07-23T13:17:37.834Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20197/runs/1/steps/?limit=10000 -o steps-info.json
[2020-07-23T13:17:40.317Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20197/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-07-23T13:17:40.868Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20197/runs/1/log/ -o pipeline-log.txt

@adriansr
Copy link
Copy Markdown
Contributor

I will submit a PR to fix the cylance/protect dataset

@andrewkroh andrewkroh merged commit cc33060 into elastic:7.x Jul 23, 2020
@zube zube bot removed the [zube]: Done label Oct 22, 2020
@andrewkroh andrewkroh deleted the backport_20168_7.x branch January 14, 2022 14:06
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