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

Add initial support for configurable file identity tracking #18748

Merged

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 26, 2020

What does this PR do?

This PR adds a new option to the log input of Filebeat named file_identity. The option lets users configure file identity for state tracking.

Available strategies

  1. native (default): Filebeat identifies files based on their inode and device id.
  2. path: Files are considered different if they have different paths.
  3. inode_marker: A special marker file and the inode is used to tell apart files. It is not supported on Windows.

State IDs previously were not saved to the registry file. Now these are persisted on the disk.

Architecture

I introduced a new interface: file.StateIdentifier. The responsibility of StateIdentifier is to generate an identifier for a file.State based on the configuration. If someone wants to implement their own StateIdentifier method, all they need is to create a struct which satisfies this interface.

// StateIdentifier generates an ID for a State.
type StateIdentifier interface {
	// GenerateID generates and returns the ID of the state
	GenerateID(State) (stateId, identifierType string)
}

As every state has an ID, Filebeat just compares the IDs of the two states to decide if they belong to the same file or not.

The scope of the PR does not include strategies which include fingerprinting the contents of the file.

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 the 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 locally

Test cases

  1. Registry file from previous versions (e.g. 7.8) can be continued with the default identity tracker
    • read an input file with Filebeat 7.8 with basic configuration
    • update to newer version of Filebeat
    • continue reading from file with the same input config
    • add new lines to the input file
    • CHECK: only the newly added lines are forwarded to the output
  2. Registry file from previous versions (e.g. 7.8) can be used with path-based identity tracking.
    • read an input file with Filebeat 7.8 with basic configuration
    • update to newer version of Filebeat
    • add file_identity.path: ~ to the input configuration
    • continue reading from file with the modified input
    • add new lines to the input file
    • CHECK: only the newly added lines are forwarded to the output

@kvch kvch added enhancement [zube]: In Progress Team:Services (Deprecated) Label for the former Integrations-Services team labels May 26, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@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 May 26, 2020
@elasticmachine
Copy link
Collaborator

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #18748 opened]

  • Start Time: 2020-05-26T16:01:36.660+0000

  • Duration: 16 min 7 sec

Steps errors

Expand to view the steps failures

  • Name: Make check
    • Description: make check

    • Duration: 10 min 38 sec

    • Start Time: 2020-05-26T16:07:33.931+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-26T16:17:16.819Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:16.826Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:16.832Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-26T16:17:16.838Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-05-26T16:17:17.087Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.097Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-26T16:17:17.106Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.115Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-26T16:17:17.126Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.135Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.144Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.154Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.163Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:17.172Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-26T16:17:18.069Z] Failed in branch Elastic Agent x-pack
[2020-05-26T16:17:18.078Z] Failed in branch Elastic Agent x-pack Windows
[2020-05-26T16:17:18.086Z] Failed in branch Elastic Agent Mac OS X
[2020-05-26T16:17:18.095Z] Failed in branch Filebeat oss
[2020-05-26T16:17:18.107Z] Failed in branch Filebeat x-pack
[2020-05-26T16:17:18.115Z] Failed in branch Filebeat Mac OS X
[2020-05-26T16:17:18.123Z] Failed in branch Filebeat x-pack Mac OS X
[2020-05-26T16:17:18.131Z] Failed in branch Filebeat Windows
[2020-05-26T16:17:18.141Z] Failed in branch Filebeat x-pack Windows
[2020-05-26T16:17:18.149Z] Failed in branch Auditbeat x-pack
[2020-05-26T16:17:18.158Z] Failed in branch Libbeat x-pack
[2020-05-26T16:17:18.166Z] Failed in branch Metricbeat OSS Unit tests
[2020-05-26T16:17:18.175Z] Failed in branch Metricbeat OSS Integration tests
[2020-05-26T16:17:18.183Z] Failed in branch Metricbeat Python integration tests
[2020-05-26T16:17:18.191Z] Failed in branch Metricbeat crosscompile
[2020-05-26T16:17:18.199Z] Failed in branch Metricbeat Mac OS X
[2020-05-26T16:17:18.207Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-05-26T16:17:18.215Z] Failed in branch Metricbeat Windows
[2020-05-26T16:17:18.224Z] Failed in branch Metricbeat x-pack Windows
[2020-05-26T16:17:18.233Z] Failed in branch Winlogbeat Windows x-pack
[2020-05-26T16:17:18.241Z] Failed in branch Kubernetes
[2020-05-26T16:17:18.908Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:18.920Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-26T16:17:18.930Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:18.940Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-26T16:17:18.950Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:18.960Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:18.968Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-26T16:17:19.411Z] Failed in branch Packetbeat
[2020-05-26T16:17:19.420Z] Failed in branch dockerlogbeat
[2020-05-26T16:17:19.429Z] Failed in branch Journalbeat
[2020-05-26T16:17:19.964Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:19.974Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-26T16:17:19.983Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:19.994Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-26T16:17:20.006Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-26T16:17:20.125Z] Failed in branch Metricbeat x-pack
[2020-05-26T16:17:20.133Z] Failed in branch Winlogbeat
[2020-05-26T16:17:20.681Z] Failed in branch Heartbeat
[2020-05-26T16:17:20.690Z] Failed in branch Libbeat
[2020-05-26T16:17:20.698Z] Failed in branch Functionbeat
[2020-05-26T16:17:20.699Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-26T16:17:20.709Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-26T16:17:21.001Z] Failed in branch Auditbeat oss
[2020-05-26T16:17:21.010Z] Failed in branch Generators
[2020-05-26T16:17:22.529Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18748/src/github.com/elastic/beats
[2020-05-26T16:17:22.869Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-26T16:17:22.895Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18748/src/github.com/elastic/beats/Lint
[2020-05-26T16:17:23.336Z] + cat
[2020-05-26T16:17:23.336Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-26T16:17:23.336Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-26T16:17:29.937Z] runbld>>> runbld started
[2020-05-26T16:17:29.937Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-26T16:17:31.857Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18748' in order of occurrence in the config (last value wins).
[2020-05-26T16:17:33.251Z] runbld>>> Debug logging enabled.
[2020-05-26T16:17:33.251Z] runbld>>> Storing result
[2020-05-26T16:17:33.513Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-26T16:17:33.514Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200526161733-1580E9AF
[2020-05-26T16:17:33.514Z] runbld>>> Adding system facts.
[2020-05-26T16:17:34.467Z] runbld>>> Adding vcs info for the latest commit:  5afb64e1dcbddeff2d42e1b96d91e99652560bca
[2020-05-26T16:17:34.729Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-26T16:17:34.729Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-26T16:17:34.729Z] Processing JUnit reports with runbld...
[2020-05-26T16:17:34.729Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-26T16:17:34.991Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-26T16:17:34.991Z] runbld>>> DURATION: 19ms
[2020-05-26T16:17:34.991Z] runbld>>> STDOUT: 40 bytes
[2020-05-26T16:17:34.991Z] runbld>>> STDERR: 49 bytes
[2020-05-26T16:17:34.991Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-26T16:17:34.991Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18748/src/github.com/elastic/beats
[2020-05-26T16:17:35.936Z] runbld>>> Storing build metadata: 
[2020-05-26T16:17:35.936Z] runbld>>> Adding test report.
[2020-05-26T16:17:35.936Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18748/src/github.com/elastic/beats
[2020-05-26T16:17:36.880Z] runbld>>> Found 0 test output files
[2020-05-26T16:17:36.880Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 0 Skipped: 0
[2020-05-26T16:17:37.142Z] runbld>>> Storing result
[2020-05-26T16:17:37.404Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-26T16:17:37.404Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200526161733-1580E9AF
[2020-05-26T16:17:37.404Z] runbld>>> Email notification disabled by environment variable.
[2020-05-26T16:17:37.404Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-26T16:17:43.112Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18748
[2020-05-26T16:17:43.300Z] [INFO] getVaultSecret: Getting secrets
[2020-05-26T16:17:43.369Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-26T16:17:44.301Z] + chmod 755 generate-build-data.sh
[2020-05-26T16:17:44.301Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18748/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18748/runs/1 FAILURE 967366
[2020-05-26T16:17:44.852Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18748/runs/1/steps/?limit=10000 -o steps-info.json

@kvch kvch force-pushed the feature-filebeat-configurable-identity-tracker branch 2 times, most recently from 7396cf7 to 717253d Compare May 29, 2020 09:00
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 29, 2020

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [urso commented: I did run the tests locally on windows 10 and Linux with success. Last commit ID I tested: 75b772580e7e5ff3f8493d8c9bee106feae815d1]

  • Reason: Aborted from #9

  • Start Time: 2020-07-14T10:52:36.994+0000

  • Duration: 37 min 43 sec

  • Commit: 75b7725

Test stats 🧪

Test Results
Failed 1
Passed 5559
Skipped 1045
Total 6605

Test errors

Expand to view the tests failures

  • Name: Build and Test / Auditbeat x-pack / test_dns_long_request – test_system_socket.Test

    • Age: 1
    • Duration: 30.906
    • Error Details: The events in: [
      {
      "@timestamp": "2020-07-14T11:23:31.059Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 64,
      "client.ip": "127.65.75.23",
      "client.packets": 1,
      "client.port": 57662,
      "destination.bytes": 72,
      "destination.ip": "127.15.98.165",
      "destination.packets": 1,
      "destination.port": 53,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 27108,
      "event.end": "2020-07-14T11:23:28.145Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:28.145Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 136,
      "network.community_id": "1:qAJEIWSMcF7kMgs1MzyvnxaMyLs=",
      "network.direction": "inbound",
      "network.packets": 2,
      "network.transport": "udp",
      "network.type": "ipv4",
      "process.args": [
      "/tmp/python-env/build/ve/docker/bin/python3",
      "/tmp/python-env/build/ve/docker/bin/nosetests",
      "--process-timeout=90",
      "--with-timer",
      "--with-xunit",
      "--xunit-file=build/TEST-python-integration.xml",
      "tests/system/test_metricsets.py",
      "tests/system/test_system_socket.py"
      ],
      "process.created": "2020-07-14T11:22:52.990Z",
      "process.executable": "/usr/bin/python3.7",
      "process.name": "nosetests",
      "process.pid": 28514,
      "related.ip": [
      "127.15.98.165",
      "127.65.75.23"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 72,
      "server.ip": "127.15.98.165",
      "server.packets": 1,
      "server.port": 53,
      "service.type": "system",
      "source.bytes": 64,
      "source.ip": "127.65.75.23",
      "source.packets": 1,
      "source.port": 57662,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dde7ad400",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:31.059Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 56,
      "client.ip": "127.65.75.23",
      "client.packets": 1,
      "client.port": 57662,
      "destination.bytes": 80,
      "destination.ip": "127.15.98.165",
      "destination.packets": 1,
      "destination.port": 53,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 126069,
      "event.end": "2020-07-14T11:23:28.145Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:28.145Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 136,
      "network.community_id": "1:qAJEIWSMcF7kMgs1MzyvnxaMyLs=",
      "network.direction": "outbound",
      "network.packets": 2,
      "network.transport": "udp",
      "network.type": "ipv4",
      "process.args": [
      "/tmp/python-env/build/ve/docker/bin/python3",
      "/tmp/python-env/build/ve/docker/bin/nosetests",
      "--process-timeout=90",
      "--with-timer",
      "--with-xunit",
      "--xunit-file=build/TEST-python-integration.xml",
      "tests/system/test_metricsets.py",
      "tests/system/test_system_socket.py"
      ],
      "process.created": "2020-07-14T11:22:52.990Z",
      "process.executable": "/usr/bin/python3.7",
      "process.name": "nosetests",
      "process.pid": 28514,
      "related.ip": [
      "127.65.75.23",
      "127.15.98.165"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 80,
      "server.ip": "127.15.98.165",
      "server.packets": 1,
      "server.port": 53,
      "service.type": "system",
      "source.bytes": 56,
      "source.ip": "127.65.75.23",
      "source.packets": 1,
      "source.port": 57662,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dde7aec00",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:34.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 12178,
      "client.ip": "10.224.0.230",
      "client.packets": 7,
      "client.port": 52714,
      "destination.bytes": 297,
      "destination.ip": "35.184.73.24",
      "destination.packets": 6,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 3783939568,
      "event.end": "2020-07-14T11:23:31.899Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:28.115Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 12475,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 13,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 297,
      "server.ip": "35.184.73.24",
      "server.packets": 6,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 12178,
      "source.ip": "10.224.0.230",
      "source.packets": 7,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:37.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 40,
      "client.ip": "10.224.0.230",
      "client.packets": 1,
      "client.port": 38470,
      "destination.bytes": 20,
      "destination.ip": "169.254.169.254",
      "destination.packets": 1,
      "destination.port": 80,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 89528,
      "event.end": "2020-07-14T11:23:34.140Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:34.139Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 60,
      "network.community_id": "1:KQesFFUYjvVZ5Dr7HpwXsVzL/As=",
      "network.direction": "unknown",
      "network.packets": 2,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/bin/python3",
      "/usr/bin/google_clock_skew_daemon"
      ],
      "process.created": "2020-07-14T11:14:32.380Z",
      "process.executable": "/usr/bin/python3.5",
      "process.name": "google_clock_sk",
      "process.pid": 1889,
      "related.ip": [
      "10.224.0.230",
      "169.254.169.254"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 20,
      "server.ip": "169.254.169.254",
      "server.packets": 1,
      "server.port": 80,
      "service.type": "system",
      "source.bytes": 40,
      "source.ip": "10.224.0.230",
      "source.packets": 1,
      "source.port": 38470,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5758000",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:37.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 433,
      "client.ip": "10.224.0.230",
      "client.packets": 3,
      "client.port": 38512,
      "destination.bytes": 68,
      "destination.ip": "169.254.169.254",
      "destination.packets": 3,
      "destination.port": 80,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 406602,
      "event.end": "2020-07-14T11:23:34.141Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:34.141Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": true,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 501,
      "network.community_id": "1:N2MRSwYWINiajxBdUywah0FNbIM=",
      "network.direction": "outbound",
      "network.packets": 6,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/bin/python3",
      "/usr/bin/google_clock_skew_daemon"
      ],
      "process.created": "2020-07-14T11:14:32.380Z",
      "process.executable": "/usr/bin/python3.5",
      "process.name": "google_clock_sk",
      "process.pid": 1889,
      "related.ip": [
      "10.224.0.230",
      "169.254.169.254"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 68,
      "server.ip": "169.254.169.254",
      "server.packets": 3,
      "server.port": 80,
      "service.type": "system",
      "source.bytes": 433,
      "source.ip": "10.224.0.230",
      "source.packets": 3,
      "source.port": 38512,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dc99f7000",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:37.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 80,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 38498,
      "destination.bytes": 300,
      "destination.ip": "169.254.169.254",
      "destination.packets": 2,
      "destination.port": 80,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 40316549,
      "event.end": "2020-07-14T11:23:34.179Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:34.139Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "host.name": "dd40371464b1",
      "network.bytes": 380,
      "network.community_id": "1:5ZAZoBZazHrXr2KuKgfcPr146JI=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "related.ip": [
      "10.224.0.230",
      "169.254.169.254"
      ],
      "server.bytes": 300,
      "server.ip": "169.254.169.254",
      "server.packets": 2,
      "server.port": 80,
      "service.type": "system",
      "source.bytes": 80,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 38498,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5074800"
      },
      {
      "@timestamp": "2020-07-14T11:23:37.059Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 2243,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 52714,
      "destination.bytes": 99,
      "destination.ip": "35.184.73.24",
      "destination.packets": 2,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2091185,
      "event.end": "2020-07-14T11:23:34.901Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:34.899Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2342,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 99,
      "server.ip": "35.184.73.24",
      "server.packets": 2,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 2243,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:37.059Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 59948,
      "client.ip": "10.224.0.230",
      "client.packets": 88,
      "client.port": 53598,
      "destination.bytes": 94268,
      "destination.ip": "10.224.0.26",
      "destination.packets": 58,
      "destination.port": 49187,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 6709461609,
      "event.end": "2020-07-14T11:23:35.044Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:28.335Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "1155",
      "host.name": "dd40371464b1",
      "network.bytes": 154216,
      "network.community_id": "1:RF2ot3AoV7K5iBgRximzKUw4CZU=",
      "network.direction": "unknown",
      "network.packets": 146,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "java",
      "-Djava.util.logging.config.file=/var/lib/jenkins/logging.properties",
      "-javaagent:/opt/jolokia/jolokia-agent.jar=config=/opt/jolokia/jolokia.properties",
      "-Dorg.jenkinsci.plugins.gitclient.Git.timeOut=10",
      "-jar",
      "/usr/local/share/jenkins/swarm-client-3.17.jar",
      "-description",
      "Ubuntu 16.04 - 2 CPU Cores / 3539 MB Memory",
      "-disableClientsUniqueId",
      "-executors",
      "1",
      "-fsroot",
      "/var/lib/jenkins",
      "-master",
      "https://beats-ci.elastic.co/",
      "-maxRetryInterval",
      "160",
      "-retryBackOffStrategy",
      "linear",
      "-mode",
      "exclusive",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-username",
      "local-admin",
      "-passwordFile",
      "/var/lib/jenkins/.jenkins_password",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-master",
      "https://beats-ci.elastic.co",
      "-username",
      "local-admin",
      "-labels",
      "docker",
      "-labels",
      "immutable",
      "-labels",
      "linux",
      "-labels",
      "linux-immutable",
      "-labels",
      "swarm",
      "-labels",
      "ubuntu",
      "-labels",
      "ubuntu-16.04",
      "-labels",
      "ubuntu-16",
      "-labels",
      "virtual",
      "-labels",
      "x86_64",
      "-description",
      "MachineType:n1-highmem-4,DiskSize:150"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java",
      "process.name": "java",
      "process.pid": 2202,
      "related.ip": [
      "10.224.0.230",
      "10.224.0.26"
      ],
      "server.bytes": 94268,
      "server.ip": "10.224.0.26",
      "server.packets": 58,
      "server.port": 49187,
      "service.type": "system",
      "source.bytes": 59948,
      "source.ip": "10.224.0.230",
      "source.packets": 88,
      "source.port": 53598,
      "system.audit.socket.egid": 1155,
      "system.audit.socket.euid": 1154,
      "system.audit.socket.gid": 1155,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a3300",
      "system.audit.socket.uid": 1154,
      "user.id": "1154"
      },
      {
      "@timestamp": "2020-07-14T11:23:38.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 1198,
      "client.ip": "127.0.0.1",
      "client.packets": 4,
      "client.port": 47816,
      "destination.bytes": 1564,
      "destination.ip": "127.0.0.1",
      "destination.packets": 3,
      "destination.port": 8778,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2646156,
      "event.end": "2020-07-14T11:23:35.338Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:35.336Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2762,
      "network.community_id": "1:gjLyHabKooOuNP5F1OsMKpbjIa4=",
      "network.direction": "unknown",
      "network.packets": 7,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "127.0.0.1",
      "127.0.0.1"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 1564,
      "server.ip": "127.0.0.1",
      "server.packets": 3,
      "server.port": 8778,
      "service.type": "system",
      "source.bytes": 1198,
      "source.ip": "127.0.0.1",
      "source.packets": 4,
      "source.port": 47816,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575a800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:38.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 1624,
      "client.ip": "127.0.0.1",
      "client.packets": 3,
      "client.port": 8778,
      "destination.bytes": 1118,
      "destination.ip": "127.0.0.1",
      "destination.packets": 4,
      "destination.port": 47816,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2426315,
      "event.end": "2020-07-14T11:23:35.338Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:35.336Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2742,
      "network.community_id": "1:gjLyHabKooOuNP5F1OsMKpbjIa4=",
      "network.direction": "unknown",
      "network.packets": 7,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "127.0.0.1",
      "127.0.0.1"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 1118,
      "server.ip": "127.0.0.1",
      "server.packets": 4,
      "server.port": 47816,
      "service.type": "system",
      "source.bytes": 1624,
      "source.ip": "127.0.0.1",
      "source.packets": 3,
      "source.port": 8778,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a4400",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:39.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 2121,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 46788,
      "destination.bytes": 625,
      "destination.ip": "54.177.169.222",
      "destination.packets": 2,
      "destination.port": 9243,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 51331795,
      "event.end": "2020-07-14T11:23:36.391Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:36.339Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2746,
      "network.community_id": "1:kc4GAaTShlC2SFLXFq/a/qKgjJk=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "10.224.0.230",
      "54.177.169.222"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 625,
      "server.ip": "54.177.169.222",
      "server.packets": 2,
      "server.port": 9243,
      "service.type": "system",
      "source.bytes": 2121,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 46788,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5075000",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:40.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 80,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 38496,
      "destination.bytes": 3449,
      "destination.ip": "169.254.169.254",
      "destination.packets": 3,
      "destination.port": 80,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 863542,
      "event.end": "2020-07-14T11:23:37.861Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:37.860Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 3529,
      "network.community_id": "1:kAQOKZRdSb/kZEzrziDFkzjiD+A=",
      "network.direction": "unknown",
      "network.packets": 5,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/bin/python3",
      "/usr/bin/google_accounts_daemon"
      ],
      "process.created": "2020-07-14T11:14:32.380Z",
      "process.executable": "/usr/bin/python3.5",
      "process.name": "google_accounts",
      "process.pid": 1893,
      "related.ip": [
      "10.224.0.230",
      "169.254.169.254"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 3449,
      "server.ip": "169.254.169.254",
      "server.packets": 3,
      "server.port": 80,
      "service.type": "system",
      "source.bytes": 80,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 38496,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dc99f4800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:40.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 398,
      "client.ip": "10.224.0.230",
      "client.packets": 3,
      "client.port": 38514,
      "destination.bytes": 68,
      "destination.ip": "169.254.169.254",
      "destination.packets": 3,
      "destination.port": 80,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 594075,
      "event.end": "2020-07-14T11:23:37.885Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:37.884Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": true,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 466,
      "network.community_id": "1:CBL+m8bYu/JxeMxdztaGaseQuzQ=",
      "network.direction": "outbound",
      "network.packets": 6,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/bin/python3",
      "/usr/bin/google_accounts_daemon"
      ],
      "process.created": "2020-07-14T11:14:32.380Z",
      "process.executable": "/usr/bin/python3.5",
      "process.name": "google_accounts",
      "process.pid": 1893,
      "related.ip": [
      "10.224.0.230",
      "169.254.169.254"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 68,
      "server.ip": "169.254.169.254",
      "server.packets": 3,
      "server.port": 80,
      "service.type": "system",
      "source.bytes": 398,
      "source.ip": "10.224.0.230",
      "source.packets": 3,
      "source.port": 38514,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575f800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:41.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 132,
      "client.ip": "127.81.91.125",
      "client.packets": 3,
      "client.port": 51415,
      "destination.bytes": 234,
      "destination.ip": "127.152.101.243",
      "destination.packets": 4,
      "destination.port": 57293,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 468331,
      "event.end": "2020-07-14T11:23:38.156Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:38.155Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": true,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 366,
      "network.community_id": "1:chLSMsoEapUh7NU6E4Mx8L94K8g=",
      "network.direction": "inbound",
      "network.packets": 7,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/bin/python3",
      "/usr/bin/google_clock_skew_daemon"
      ],
      "process.created": "2020-07-14T11:14:32.380Z",
      "process.executable": "/usr/bin/python3.5",
      "process.name": "google_clock_sk",
      "process.pid": 28514,
      "related.ip": [
      "127.152.101.243",
      "127.81.91.125"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 234,
      "server.ip": "127.152.101.243",
      "server.packets": 4,
      "server.port": 57293,
      "service.type": "system",
      "source.bytes": 132,
      "source.ip": "127.81.91.125",
      "source.packets": 3,
      "source.port": 51415,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5758000",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:41.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 304,
      "client.ip": "127.81.91.125",
      "client.packets": 5,
      "client.port": 51415,
      "destination.bytes": 194,
      "destination.domain": "elastic.co",
      "destination.ip": "127.152.101.243",
      "destination.packets": 5,
      "destination.port": 57293,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 727374,
      "event.end": "2020-07-14T11:23:38.156Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:38.155Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": true,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 498,
      "network.community_id": "1:chLSMsoEapUh7NU6E4Mx8L94K8g=",
      "network.direction": "outbound",
      "network.packets": 10,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/tmp/python-env/build/ve/docker/bin/python3",
      "/tmp/python-env/build/ve/docker/bin/nosetests",
      "--process-timeout=90",
      "--with-timer",
      "--with-xunit",
      "--xunit-file=build/TEST-python-integration.xml",
      "tests/system/test_metricsets.py",
      "tests/system/test_system_socket.py"
      ],
      "process.created": "2020-07-14T11:22:52.990Z",
      "process.executable": "/usr/bin/python3.7",
      "process.name": "nosetests",
      "process.pid": 28514,
      "related.ip": [
      "127.81.91.125",
      "127.152.101.243"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 194,
      "server.domain": "elastic.co",
      "server.ip": "127.152.101.243",
      "server.packets": 5,
      "server.port": 57293,
      "service.type": "system",
      "source.bytes": 304,
      "source.ip": "127.81.91.125",
      "source.packets": 5,
      "source.port": 51415,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575c800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:42.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 15760,
      "client.ip": "10.224.0.230",
      "client.packets": 24,
      "client.port": 53598,
      "destination.bytes": 26544,
      "destination.ip": "10.224.0.26",
      "destination.packets": 17,
      "destination.port": 49187,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2685499800,
      "event.end": "2020-07-14T11:23:39.952Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:37.266Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "1155",
      "host.name": "dd40371464b1",
      "network.bytes": 42304,
      "network.community_id": "1:RF2ot3AoV7K5iBgRximzKUw4CZU=",
      "network.direction": "unknown",
      "network.packets": 41,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "java",
      "-Djava.util.logging.config.file=/var/lib/jenkins/logging.properties",
      "-javaagent:/opt/jolokia/jolokia-agent.jar=config=/opt/jolokia/jolokia.properties",
      "-Dorg.jenkinsci.plugins.gitclient.Git.timeOut=10",
      "-jar",
      "/usr/local/share/jenkins/swarm-client-3.17.jar",
      "-description",
      "Ubuntu 16.04 - 2 CPU Cores / 3539 MB Memory",
      "-disableClientsUniqueId",
      "-executors",
      "1",
      "-fsroot",
      "/var/lib/jenkins",
      "-master",
      "https://beats-ci.elastic.co/",
      "-maxRetryInterval",
      "160",
      "-retryBackOffStrategy",
      "linear",
      "-mode",
      "exclusive",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-username",
      "local-admin",
      "-passwordFile",
      "/var/lib/jenkins/.jenkins_password",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-master",
      "https://beats-ci.elastic.co",
      "-username",
      "local-admin",
      "-labels",
      "docker",
      "-labels",
      "immutable",
      "-labels",
      "linux",
      "-labels",
      "linux-immutable",
      "-labels",
      "swarm",
      "-labels",
      "ubuntu",
      "-labels",
      "ubuntu-16.04",
      "-labels",
      "ubuntu-16",
      "-labels",
      "virtual",
      "-labels",
      "x86_64",
      "-description",
      "MachineType:n1-highmem-4,DiskSize:150"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java",
      "process.name": "java",
      "process.pid": 2202,
      "related.ip": [
      "10.224.0.230",
      "10.224.0.26"
      ],
      "server.bytes": 26544,
      "server.ip": "10.224.0.26",
      "server.packets": 17,
      "server.port": 49187,
      "service.type": "system",
      "source.bytes": 15760,
      "source.ip": "10.224.0.230",
      "source.packets": 24,
      "source.port": 53598,
      "system.audit.socket.egid": 1155,
      "system.audit.socket.euid": 1154,
      "system.audit.socket.gid": 1155,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a3300",
      "system.audit.socket.uid": 1154,
      "user.id": "1154"
      },
      {
      "@timestamp": "2020-07-14T11:23:43.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 11660,
      "client.ip": "10.224.0.230",
      "client.packets": 7,
      "client.port": 52714,
      "destination.bytes": 297,
      "destination.ip": "35.184.73.24",
      "destination.packets": 6,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 3005595750,
      "event.end": "2020-07-14T11:23:40.907Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:37.902Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 11957,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 13,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 297,
      "server.ip": "35.184.73.24",
      "server.packets": 6,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 11660,
      "source.ip": "10.224.0.230",
      "source.packets": 7,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:44.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 104,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 46786,
      "destination.bytes": 64,
      "destination.ip": "54.177.169.222",
      "destination.packets": 2,
      "destination.port": 9243,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 40532391,
      "event.end": "2020-07-14T11:23:41.188Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:41.147Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "host.name": "dd40371464b1",
      "network.bytes": 168,
      "network.community_id": "1:lbQPuj3hiAFF4027a39wzwzaMak=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "related.ip": [
      "10.224.0.230",
      "54.177.169.222"
      ],
      "server.bytes": 64,
      "server.ip": "54.177.169.222",
      "server.packets": 2,
      "server.port": 9243,
      "service.type": "system",
      "source.bytes": 104,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 46786,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5759800"
      },
      {
      "@timestamp": "2020-07-14T11:23:46.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 7880,
      "client.ip": "10.224.0.230",
      "client.packets": 12,
      "client.port": 53598,
      "destination.bytes": 13256,
      "destination.ip": "10.224.0.26",
      "destination.packets": 8,
      "destination.port": 49187,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 9520429,
      "event.end": "2020-07-14T11:23:43.161Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:43.151Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "1155",
      "host.name": "dd40371464b1",
      "network.bytes": 21136,
      "network.community_id": "1:RF2ot3AoV7K5iBgRximzKUw4CZU=",
      "network.direction": "unknown",
      "network.packets": 20,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "java",
      "-Djava.util.logging.config.file=/var/lib/jenkins/logging.properties",
      "-javaagent:/opt/jolokia/jolokia-agent.jar=config=/opt/jolokia/jolokia.properties",
      "-Dorg.jenkinsci.plugins.gitclient.Git.timeOut=10",
      "-jar",
      "/usr/local/share/jenkins/swarm-client-3.17.jar",
      "-description",
      "Ubuntu 16.04 - 2 CPU Cores / 3539 MB Memory",
      "-disableClientsUniqueId",
      "-executors",
      "1",
      "-fsroot",
      "/var/lib/jenkins",
      "-master",
      "https://beats-ci.elastic.co/",
      "-maxRetryInterval",
      "160",
      "-retryBackOffStrategy",
      "linear",
      "-mode",
      "exclusive",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-username",
      "local-admin",
      "-passwordFile",
      "/var/lib/jenkins/.jenkins_password",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-master",
      "https://beats-ci.elastic.co",
      "-username",
      "local-admin",
      "-labels",
      "docker",
      "-labels",
      "immutable",
      "-labels",
      "linux",
      "-labels",
      "linux-immutable",
      "-labels",
      "swarm",
      "-labels",
      "ubuntu",
      "-labels",
      "ubuntu-16.04",
      "-labels",
      "ubuntu-16",
      "-labels",
      "virtual",
      "-labels",
      "x86_64",
      "-description",
      "MachineType:n1-highmem-4,DiskSize:150"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java",
      "process.name": "java",
      "process.pid": 2202,
      "related.ip": [
      "10.224.0.230",
      "10.224.0.26"
      ],
      "server.bytes": 13256,
      "server.ip": "10.224.0.26",
      "server.packets": 8,
      "server.port": 49187,
      "service.type": "system",
      "source.bytes": 7880,
      "source.ip": "10.224.0.230",
      "source.packets": 12,
      "source.port": 53598,
      "system.audit.socket.egid": 1155,
      "system.audit.socket.euid": 1154,
      "system.audit.socket.gid": 1155,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a3300",
      "system.audit.socket.uid": 1154,
      "user.id": "1154"
      },
      {
      "@timestamp": "2020-07-14T11:23:46.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 2198,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 52714,
      "destination.bytes": 99,
      "destination.ip": "35.184.73.24",
      "destination.packets": 2,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 1837647,
      "event.end": "2020-07-14T11:23:43.907Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:43.906Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2297,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 99,
      "server.ip": "35.184.73.24",
      "server.packets": 2,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 2198,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:48.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 1198,
      "client.ip": "127.0.0.1",
      "client.packets": 4,
      "client.port": 47816,
      "destination.bytes": 1565,
      "destination.ip": "127.0.0.1",
      "destination.packets": 3,
      "destination.port": 8778,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2965232,
      "event.end": "2020-07-14T11:23:45.339Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:45.336Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2763,
      "network.community_id": "1:gjLyHabKooOuNP5F1OsMKpbjIa4=",
      "network.direction": "unknown",
      "network.packets": 7,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "127.0.0.1",
      "127.0.0.1"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 1565,
      "server.ip": "127.0.0.1",
      "server.packets": 3,
      "server.port": 8778,
      "service.type": "system",
      "source.bytes": 1198,
      "source.ip": "127.0.0.1",
      "source.packets": 4,
      "source.port": 47816,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575a800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:48.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 1625,
      "client.ip": "127.0.0.1",
      "client.packets": 3,
      "client.port": 8778,
      "destination.bytes": 1118,
      "destination.ip": "127.0.0.1",
      "destination.packets": 4,
      "destination.port": 47816,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2907604,
      "event.end": "2020-07-14T11:23:45.339Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:45.336Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2743,
      "network.community_id": "1:gjLyHabKooOuNP5F1OsMKpbjIa4=",
      "network.direction": "unknown",
      "network.packets": 7,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "127.0.0.1",
      "127.0.0.1"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 1118,
      "server.ip": "127.0.0.1",
      "server.packets": 4,
      "server.port": 47816,
      "service.type": "system",
      "source.bytes": 1625,
      "source.ip": "127.0.0.1",
      "source.packets": 3,
      "source.port": 8778,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a4400",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:49.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 82608,
      "client.ip": "10.224.0.230",
      "client.packets": 31,
      "client.port": 46788,
      "destination.bytes": 1458,
      "destination.ip": "54.177.169.222",
      "destination.packets": 19,
      "destination.port": 9243,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 154064969,
      "event.end": "2020-07-14T11:23:46.139Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:45.985Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 84066,
      "network.community_id": "1:kc4GAaTShlC2SFLXFq/a/qKgjJk=",
      "network.direction": "unknown",
      "network.packets": 50,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/metricbeat",
      "-e",
      "-c",
      "/etc/metricbeat/metricbeat.yml",
      "--path.home",
      "/etc/metricbeat"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/metricbeat-7.3.2-linux-x86_64/metricbeat",
      "process.name": "metricbeat",
      "process.pid": 2206,
      "related.ip": [
      "10.224.0.230",
      "54.177.169.222"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 1458,
      "server.ip": "54.177.169.222",
      "server.packets": 19,
      "server.port": 9243,
      "service.type": "system",
      "source.bytes": 82608,
      "source.ip": "10.224.0.230",
      "source.packets": 31,
      "source.port": 46788,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd5075000",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:49.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 2202,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 52714,
      "destination.bytes": 99,
      "destination.ip": "35.184.73.24",
      "destination.packets": 2,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 2133301,
      "event.end": "2020-07-14T11:23:46.913Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:46.911Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2301,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 99,
      "server.ip": "35.184.73.24",
      "server.packets": 2,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 2202,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      },
      {
      "@timestamp": "2020-07-14T11:23:49.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 7828,
      "client.ip": "10.224.0.230",
      "client.packets": 11,
      "client.port": 53598,
      "destination.bytes": 13288,
      "destination.ip": "10.224.0.26",
      "destination.packets": 9,
      "destination.port": 49187,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 9786394,
      "event.end": "2020-07-14T11:23:47.008Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:46.999Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "1155",
      "host.name": "dd40371464b1",
      "network.bytes": 21116,
      "network.community_id": "1:RF2ot3AoV7K5iBgRximzKUw4CZU=",
      "network.direction": "unknown",
      "network.packets": 20,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "java",
      "-Djava.util.logging.config.file=/var/lib/jenkins/logging.properties",
      "-javaagent:/opt/jolokia/jolokia-agent.jar=config=/opt/jolokia/jolokia.properties",
      "-Dorg.jenkinsci.plugins.gitclient.Git.timeOut=10",
      "-jar",
      "/usr/local/share/jenkins/swarm-client-3.17.jar",
      "-description",
      "Ubuntu 16.04 - 2 CPU Cores / 3539 MB Memory",
      "-disableClientsUniqueId",
      "-executors",
      "1",
      "-fsroot",
      "/var/lib/jenkins",
      "-master",
      "https://beats-ci.elastic.co/",
      "-maxRetryInterval",
      "160",
      "-retryBackOffStrategy",
      "linear",
      "-mode",
      "exclusive",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-username",
      "local-admin",
      "-passwordFile",
      "/var/lib/jenkins/.jenkins_password",
      "-name",
      "beats-ci-immutable-ubuntu-1604-1594725241244119654",
      "-master",
      "https://beats-ci.elastic.co",
      "-username",
      "local-admin",
      "-labels",
      "docker",
      "-labels",
      "immutable",
      "-labels",
      "linux",
      "-labels",
      "linux-immutable",
      "-labels",
      "swarm",
      "-labels",
      "ubuntu",
      "-labels",
      "ubuntu-16.04",
      "-labels",
      "ubuntu-16",
      "-labels",
      "virtual",
      "-labels",
      "x86_64",
      "-description",
      "MachineType:n1-highmem-4,DiskSize:150"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java",
      "process.name": "java",
      "process.pid": 2202,
      "related.ip": [
      "10.224.0.230",
      "10.224.0.26"
      ],
      "server.bytes": 13288,
      "server.ip": "10.224.0.26",
      "server.packets": 9,
      "server.port": 49187,
      "service.type": "system",
      "source.bytes": 7828,
      "source.ip": "10.224.0.230",
      "source.packets": 11,
      "source.port": 53598,
      "system.audit.socket.egid": 1155,
      "system.audit.socket.euid": 1154,
      "system.audit.socket.gid": 1155,
      "system.audit.socket.kernel_sock_address": "0xffff981dd19a3300",
      "system.audit.socket.uid": 1154,
      "user.id": "1154"
      },
      {
      "@timestamp": "2020-07-14T11:23:52.058Z",
      "agent.ephemeral_id": "75ff23d7-0dac-464c-bfbf-4fca327ac633",
      "agent.id": "1d88867c-9a09-43c6-bece-79718754aff2",
      "agent.name": "dd40371464b1",
      "agent.type": "auditbeat",
      "agent.version": "8.0.0",
      "client.bytes": 2155,
      "client.ip": "10.224.0.230",
      "client.packets": 2,
      "client.port": 52714,
      "destination.bytes": 99,
      "destination.ip": "35.184.73.24",
      "destination.packets": 2,
      "destination.port": 5001,
      "ecs.version": "1.5.0",
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.duration": 1866237,
      "event.end": "2020-07-14T11:23:49.914Z",
      "event.kind": "event",
      "event.module": "system",
      "event.start": "2020-07-14T11:23:49.912Z",
      "event.type": [
      "info",
      "connection"
      ],
      "flow.complete": false,
      "flow.final": true,
      "group.id": "0",
      "group.name": "root",
      "host.name": "dd40371464b1",
      "network.bytes": 2254,
      "network.community_id": "1:mz/kLF63+bHKyDYpKLA/rNJThL0=",
      "network.direction": "unknown",
      "network.packets": 4,
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.args": [
      "/usr/local/bin/auditbeat",
      "-e",
      "-c",
      "/etc/auditbeat/auditbeat.yml"
      ],
      "process.created": "2020-07-14T11:14:33.750Z",
      "process.executable": "/opt/auditbeat-7.3.0-linux-x86_64/auditbeat",
      "process.name": "auditbeat",
      "process.pid": 2203,
      "related.ip": [
      "10.224.0.230",
      "35.184.73.24"
      ],
      "related.user": [
      "root"
      ],
      "server.bytes": 99,
      "server.ip": "35.184.73.24",
      "server.packets": 2,
      "server.port": 5001,
      "service.type": "system",
      "source.bytes": 2155,
      "source.ip": "10.224.0.230",
      "source.packets": 2,
      "source.port": 52714,
      "system.audit.socket.egid": 0,
      "system.audit.socket.euid": 0,
      "system.audit.socket.gid": 0,
      "system.audit.socket.kernel_sock_address": "0xffff981dd575d800",
      "system.audit.socket.uid": 0,
      "user.id": "0",
      "user.name": "root"
      }
      ] don't match the condition: the documents contain {
      "agent.type": "auditbeat",
      "client.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 30
      },
      "client.ip": "127.65.75.23",
      "client.packets": 1,
      "client.port": 57662,
      "destination.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 30
      },
      "destination.ip": "127.15.98.165",
      "destination.packets": 1,
      "destination.port": 53,
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.kind": "event",
      "event.module": "system",
      "network.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 60
      },
      "network.direction": "inbound",
      "network.packets": 2,
      "network.transport": "udp",
      "network.type": "ipv4",
      "process.pid": 28514,
      "server.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 30
      },
      "server.ip": "127.15.98.165",
      "server.packets": 1,
      "server.port": 53,
      "source.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 30
      },
      "source.ip": "127.65.75.23",
      "source.packets": 1,
      "source.port": 57662,
      "user.id": "0"
      },
      {
      "agent.type": "auditbeat",
      "client.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 80
      },
      "client.ip": "127.81.91.125",
      "client.packets": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "client.port": 51415,
      "destination.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "destination.domain": "elastic.co",
      "destination.ip": "127.152.101.243",
      "destination.packets": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "destination.port": 57293,
      "event.action": "network_flow",
      "event.category": [
      "network",
      "network_traffic"
      ],
      "event.dataset": "socket",
      "event.kind": "event",
      "event.module": "system",
      "network.direction": "inbound",
      "network.packets": {
      "operator": "",
      "type": "comparison",
      "value": 5
      },
      "network.transport": "tcp",
      "network.type": "ipv4",
      "process.pid": 28514,
      "server.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "server.domain": "elastic.co",
      "server.ip": "127.152.101.243",
      "server.packets": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "server.port": 57293,
      "service.type": "system",
      "source.bytes": {
      "operator": "",
      "type": "comparison",
      "value": 80
      },
      "source.ip": "127.81.91.125",
      "source.packets": {
      "operator": "",
      "type": "comparison",
      "value": 2
      },
      "source.port": 51415
      }

Steps errors

Expand to view the steps failures

  • Name: Make -C filebeat testsuite

    • Description: make -C filebeat testsuite

    • Duration: 7 min 17 sec

    • Start Time: 2020-07-14T11:16:35.034+0000

    • log

  • Name: Mage update build test

    • Description: mage update build test

    • Duration: 5 min 0 sec

    • Start Time: 2020-07-14T11:16:35.518+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-14T11:25:55.533+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-14T11:18:52.096+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-14T11:18:08.516+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-14T11:28:54.366Z] + FAILED=0
[2020-07-14T11:28:54.366Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-07-14T11:28:54.366Z] + exit 0
[2020-07-14T11:28:54.750Z] + curl -sSLo codecov https://codecov.io/bash
[2020-07-14T11:28:55.010Z] + FILE=auditbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=filebeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=heartbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=libbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=metricbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=packetbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.010Z] + FILE=journalbeat/build/coverage/full.cov
[2020-07-14T11:28:55.010Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-07-14T11:28:55.433Z] Failed in branch Metricbeat x-pack
[2020-07-14T11:28:55.604Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats
[2020-07-14T11:28:55.912Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-14T11:28:55.924Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Lint
[2020-07-14T11:28:56.009Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-14T11:28:56.100Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-14T11:28:56.206Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-14T11:28:56.308Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-14T11:28:56.397Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-14T11:28:56.475Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-14T11:28:56.553Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-14T11:28:56.633Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-14T11:28:56.709Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-14T11:28:56.786Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-14T11:28:56.870Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-14T11:28:56.948Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-14T11:28:57.029Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-14T11:28:57.107Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-14T11:28:57.183Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-14T11:28:57.261Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-14T11:28:57.350Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-14T11:28:57.430Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-14T11:28:57.508Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-oss
[2020-07-14T11:28:57.583Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-14T11:28:57.658Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-14T11:28:57.730Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-14T11:28:57.803Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-14T11:28:57.883Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Packetbeat-oss
[2020-07-14T11:28:57.980Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-14T11:28:58.068Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Libbeat-oss
[2020-07-14T11:28:58.155Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-14T11:28:58.239Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-14T11:28:58.317Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-07-14T11:28:58.394Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-14T11:28:58.465Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-07-14T11:28:58.539Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-14T11:28:58.614Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-14T11:28:58.686Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-14T11:28:58.759Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-14T11:28:58.837Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-14T11:28:59.198Z] + cat
[2020-07-14T11:28:59.198Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-14T11:28:59.198Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-14T11:29:05.861Z] runbld>>> runbld started
[2020-07-14T11:29:05.861Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-14T11:29:07.243Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-18748' in order of occurrence in the config (last value wins).
[2020-07-14T11:29:08.625Z] runbld>>> Debug logging enabled.
[2020-07-14T11:29:08.625Z] runbld>>> Storing result
[2020-07-14T11:29:08.885Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-14T11:29:08.885Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200714112908-6C2EDAD3
[2020-07-14T11:29:08.885Z] runbld>>> Adding system facts.
[2020-07-14T11:29:09.828Z] runbld>>> Adding vcs info for the latest commit:  e1ec0afa1cce4782295dd57899de8ece6278b338
[2020-07-14T11:29:09.828Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-14T11:29:09.828Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-14T11:29:09.828Z] Processing JUnit reports with runbld...
[2020-07-14T11:29:09.828Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-14T11:29:10.089Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-14T11:29:10.089Z] runbld>>> DURATION: 25ms
[2020-07-14T11:29:10.089Z] runbld>>> STDOUT: 40 bytes
[2020-07-14T11:29:10.089Z] runbld>>> STDERR: 49 bytes
[2020-07-14T11:29:10.089Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-14T11:29:10.089Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats
[2020-07-14T11:29:11.030Z] runbld>>> Storing build metadata: 
[2020-07-14T11:29:11.030Z] runbld>>> Adding test report.
[2020-07-14T11:29:11.030Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-18748/src/github.com/elastic/beats
[2020-07-14T11:29:11.971Z] runbld>>> Found 35 test output files
[2020-07-14T11:29:13.354Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 6459 Skipped: 943
[2020-07-14T11:29:13.354Z] runbld>>> Storing result
[2020-07-14T11:29:13.354Z] runbld>>> FAILURES: 1
[2020-07-14T11:29:13.928Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-14T11:29:13.928Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200714112908-6C2EDAD3
[2020-07-14T11:29:14.188Z] runbld>>> Email notification disabled by environment variable.
[2020-07-14T11:29:14.188Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-14T11:29:19.700Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-18748
[2020-07-14T11:29:19.798Z] [INFO] getVaultSecret: Getting secrets
[2020-07-14T11:29:19.872Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-14T11:29:20.599Z] + chmod 755 generate-build-data.sh
[2020-07-14T11:29:20.599Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-18748/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-18748/runs/8 ABORTED 2203346
[2020-07-14T11:29:20.599Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-18748/runs/8/steps/?limit=10000 -o steps-info.json
[2020-07-14T11:29:21.942Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-18748/runs/8/tests/?status=FAILED -o tests-errors.json

filebeat/docs/inputs/input-log.asciidoc Show resolved Hide resolved
filebeat/input/file/comparator.go Outdated Show resolved Hide resolved
filebeat/input/file/comparator.go Outdated Show resolved Hide resolved
filebeat/input/file/comparator.go Outdated Show resolved Hide resolved
filebeat/input/file/identifier.go Outdated Show resolved Hide resolved
filebeat/input/file/identifier.go Outdated Show resolved Hide resolved
filebeat/input/file/state.go Outdated Show resolved Hide resolved
filebeat/input/file/state.go Outdated Show resolved Hide resolved
filebeat/input/log/config.go Show resolved Hide resolved
@kvch
Copy link
Contributor Author

kvch commented Jun 8, 2020

jenkins run tests

@kvch kvch requested a review from urso June 9, 2020 08:13
@urso urso requested a review from dedemorton June 9, 2020 12:47
filebeat/input/log/input.go Outdated Show resolved Hide resolved
filebeat/input/log/input.go Outdated Show resolved Hide resolved
// IsSameFile determines if two states belong to the same file.
IsSameFile(*State, *State) bool
// IsEmptyState checks if state information is initialized.
IsEmptyState(*State) bool
Copy link

Choose a reason for hiding this comment

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

Checking all places where IsEmptyState is called, I think we can remove it. The IsEmpty predicate is used to check if 'States' does hold an entry matching the ID. This could be solved by adapting the interface of FindPrevious.

@kvch kvch force-pushed the feature-filebeat-configurable-identity-tracker branch from e3673a9 to 7193221 Compare July 6, 2020 14:09
if !exists {
idx[id] = state
idx[state.Id] = state
Copy link

Choose a reason for hiding this comment

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

If the IdentifierName is changed we also change the ID. Do we need to compensate for this in the registrar? E.g. by having a map of maps like map[identifier]map[id]state ?

What could happen if we don't adjust for it? Maybe we end up with duplicate entries for files because the ID was changed after the identifier type was changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am removing the outdated state in the log input: https://github.com/elastic/beats/pull/18748/files#diff-8f0e85354c10fc4b55e2f144249abc02R185 Do you think we need more cleaning up besides this?

Copy link

Choose a reason for hiding this comment

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

I wonder if the removal can lead to problems. By removing we rely on another state update event. Otherwise the entry is gone for good and a filebeat restart will force recollection.

Even with state update event, the remove+reinsert operation is not atmoic. The state update event can even be blocked for an undetermined amount of time (or even get lost if the input is stopped via autodiscovery), which leaves us with a file without state in the registry. => recollection

@kvch kvch force-pushed the feature-filebeat-configurable-identity-tracker branch from ebf0a1e to c2ef667 Compare July 8, 2020 11:21
@kvch kvch mentioned this pull request Jul 8, 2020
2 tasks
@kvch kvch force-pushed the feature-filebeat-configurable-identity-tracker branch 3 times, most recently from 94015cd to ce2da44 Compare July 9, 2020 12:52
@kvch kvch force-pushed the feature-filebeat-configurable-identity-tracker branch from bd46142 to 11fef2c Compare July 14, 2020 08:13
@kvch
Copy link
Contributor Author

kvch commented Jul 14, 2020

@jsoref Thanks for the review! I've updated the docs with your suggestions.

@urso
Copy link

urso commented Jul 14, 2020

I did run the tests locally on windows 10 and Linux with success. Last commit ID I tested: 75b7725

@urso
Copy link

urso commented Jul 14, 2020

Filebeat tests on windows with commit a9b61f2 passed for me locally

@kvch kvch merged commit 8ff6894 into elastic:master Jul 14, 2020
@kvch kvch added the v7.9.0 label Jul 14, 2020
kvch added a commit to kvch/beats that referenced this pull request Jul 14, 2020
…18748)

This PR adds a new option to the `log` input of Filebeat named `file_identity`. The option lets users configure file identity for state tracking.

1. `native` (default): Filebeat identifies files based on their inode and device id.
2. `path`: Files are considered different if they have different paths.
3. `inode_marker`: A special marker file and the inode is used to tell apart files. It is not supported on Windows.

State IDs previously were not saved to the registry file. Now, these are persisted on the disk.

I introduced a new interface: `file.StateIdentifier`. The responsibility of `StateIdentifier` is to generate an identifier for a `file.State` based on the configuration. If someone wants to implement their own `StateIdentifier` method, all they need is to create a struct which satisfies this interface.

```golang
// StateIdentifier generates an ID for a State.
type StateIdentifier interface {
	// GenerateID generates and returns the ID of the state
	GenerateID(State) (stateId, identifierType string)
}
```

As every state has an ID, Filebeat just compares the IDs of the two states to decide if they belong to the same file or not.

The scope of the PR does not include strategies which include fingerprinting the contents of the file.
(cherry picked from commit 8ff6894)
@kvch
Copy link
Contributor Author

kvch commented Jul 14, 2020

@dedemorton Could you please review the documentation of this feature again?

kvch added a commit that referenced this pull request Jul 14, 2020
…19885)

This PR adds a new option to the `log` input of Filebeat named `file_identity`. The option lets users configure file identity for state tracking.

1. `native` (default): Filebeat identifies files based on their inode and device id.
2. `path`: Files are considered different if they have different paths.
3. `inode_marker`: A special marker file and the inode is used to tell apart files. It is not supported on Windows.

State IDs previously were not saved to the registry file. Now, these are persisted on the disk.

I introduced a new interface: `file.StateIdentifier`. The responsibility of `StateIdentifier` is to generate an identifier for a `file.State` based on the configuration. If someone wants to implement their own `StateIdentifier` method, all they need is to create a struct which satisfies this interface.

```golang
// StateIdentifier generates an ID for a State.
type StateIdentifier interface {
	// GenerateID generates and returns the ID of the state
	GenerateID(State) (stateId, identifierType string)
}
```

As every state has an ID, Filebeat just compares the IDs of the two states to decide if they belong to the same file or not.

The scope of the PR does not include strategies which include fingerprinting the contents of the file.
(cherry picked from commit 8ff6894)
@kvch kvch added test-plan Add this PR to be manual test plan and removed needs tests needs testing notes labels Jul 20, 2020
@andresrc andresrc added the test-plan-added This PR has been added to the test plan label Jul 21, 2020
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
…18748)

## What does this PR do?

This PR adds a new option to the `log` input of Filebeat named `file_identity`. The option lets users configure file identity for state tracking.

### Available strategies
1. `native` (default): Filebeat identifies files based on their inode and device id.
2. `path`: Files are considered different if they have different paths.
3. `inode_marker`: A special marker file and the inode is used to tell apart files. It is not supported on Windows.

State IDs previously were not saved to the registry file. Now, these are persisted on the disk.

### Architecture

I introduced a new interface: `file.StateIdentifier`. The responsibility of `StateIdentifier` is to generate an identifier for a `file.State` based on the configuration. If someone wants to implement their own `StateIdentifier` method, all they need is to create a struct which satisfies this interface.

```golang
// StateIdentifier generates an ID for a State.
type StateIdentifier interface {
	// GenerateID generates and returns the ID of the state
	GenerateID(State) (stateId, identifierType string)
}
```

As every state has an ID, Filebeat just compares the IDs of the two states to decide if they belong to the same file or not.

The scope of the PR does not include strategies which include fingerprinting the contents of the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Team:Services (Deprecated) Label for the former Integrations-Services team test-plan Add this PR to be manual test plan test-plan-added This PR has been added to the test plan v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants