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

Fix detect_sequence_reset flag in netflow module #24270

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Mar 1, 2021

This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

What does this PR do?

Fixes the netflow module so that it passes the value in var.detect_sequence_reset to the netflow input.

Why is it important?

It was impossible to override the default for detect_sequence_reset (true).

Checklist

  • [ ] My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes elastic#24268
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 1, 2021
@adriansr adriansr added bug Filebeat Filebeat needs_backport PR is waiting to be backported to other branches. Team:Security-External Integrations labels Mar 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 1, 2021
@adriansr adriansr added the review label Mar 1, 2021
@adriansr
Copy link
Contributor Author

adriansr commented Mar 2, 2021

/test

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: adriansr commented: /test

  • Start Time: 2021-03-02T09:20:38.475+0000

  • Duration: 47 min 6 sec

  • Commit: fd2082c

Test stats 🧪

Test Results
Failed 0
Passed 6841
Skipped 1153
Total 7994

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 6841
Skipped 1153
Total 7994

@adriansr adriansr merged commit 22e20a1 into elastic:master Mar 10, 2021
adriansr added a commit to adriansr/beats that referenced this pull request Mar 10, 2021
This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes elastic#24268

(cherry picked from commit 22e20a1)
@adriansr adriansr added v7.13.0 and removed needs_backport PR is waiting to be backported to other branches. labels Mar 10, 2021
adriansr added a commit to adriansr/beats that referenced this pull request Mar 10, 2021
This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes elastic#24268

(cherry picked from commit 22e20a1)
@elasticmachine
Copy link
Collaborator

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #24270 updated

  • Start Time: 2021-03-10T08:15:40.867+0000

  • Duration: 51 min 53 sec

  • Commit: 5f98095

Test stats 🧪

Test Results
Failed 0
Passed 5375
Skipped 738
Total 6113

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 6

Expand to view the steps failures

x-pack/filebeat-windows-windows-2019 - mage build unitTest
  • Took 4 min 5 sec . View more details on here
  • Description: mage build unitTest
x-pack/filebeat-windows-2016-windows-2016 - Install Go/Mage/Python 1.15.8
  • Took 0 min 3 sec . View more details on here
  • Description: .ci/scripts/install-tools.bat
x-pack/filebeat-windows-2016-windows-2016 - Install Go/Mage/Python 1.15.8
  • Took 0 min 2 sec . View more details on here
  • Description: .ci/scripts/install-tools.bat
x-pack/filebeat-windows-2012-windows-2012-r2 - Install Go/Mage/Python 1.15.8
  • Took 0 min 3 sec . View more details on here
  • Description: .ci/scripts/install-tools.bat
x-pack/filebeat-windows-2012-windows-2012-r2 - Install Go/Mage/Python 1.15.8
  • Took 0 min 2 sec . View more details on here
  • Description: .ci/scripts/install-tools.bat
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

Log output

Expand to view the last 100 lines of log output

[2021-03-10T09:06:06.898Z] 10.91s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_057_panw
[2021-03-10T09:06:06.898Z] 10.80s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_298_threatintel
[2021-03-10T09:06:06.898Z] 10.79s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_175_cisco
[2021-03-10T09:06:06.898Z] 10.73s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_059_panw
[2021-03-10T09:06:06.898Z] 10.70s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_157_cisco
[2021-03-10T09:06:06.898Z] 10.20s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_100_oracle
[2021-03-10T09:06:06.898Z] 10.04s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_006_gcp
[2021-03-10T09:06:06.898Z] 9.98s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_034_cylance
[2021-03-10T09:06:06.898Z] 9.92s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_053_imperva
[2021-03-10T09:06:06.898Z] 9.91s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_033_tomcat
[2021-03-10T09:06:06.898Z] 9.90s call     x-pack/filebeat/tests/system/test_xpack_modules.py::XPackTest::test_fileset_file_279_juniper
[2021-03-10T09:06:06.898Z] ======================= 317 passed in 1544.07s (0:25:44) =======================
[2021-03-10T09:06:06.898Z] >> python test: Integration Testing Complete
[2021-03-10T09:06:09.137Z] Cleaning up /var/lib/jenkins/workspace/PR-24270-3-119b4368-cf0a-48ef-ac16-40024bb3fae5
[2021-03-10T09:06:09.137Z] Client: Docker Engine - Community
[2021-03-10T09:06:09.137Z]  Version:           20.10.3
[2021-03-10T09:06:09.137Z]  API version:       1.41
[2021-03-10T09:06:09.137Z]  Go version:        go1.13.15
[2021-03-10T09:06:09.137Z]  Git commit:        48d30b5
[2021-03-10T09:06:09.137Z]  Built:             Fri Jan 29 14:33:13 2021
[2021-03-10T09:06:09.137Z]  OS/Arch:           linux/amd64
[2021-03-10T09:06:09.137Z]  Context:           default
[2021-03-10T09:06:09.137Z]  Experimental:      true
[2021-03-10T09:06:09.137Z] 
[2021-03-10T09:06:09.137Z] Server: Docker Engine - Community
[2021-03-10T09:06:09.137Z]  Engine:
[2021-03-10T09:06:09.137Z]   Version:          20.10.3
[2021-03-10T09:06:09.137Z]   API version:      1.41 (minimum version 1.12)
[2021-03-10T09:06:09.137Z]   Go version:       go1.13.15
[2021-03-10T09:06:09.137Z]   Git commit:       46229ca
[2021-03-10T09:06:09.137Z]   Built:            Fri Jan 29 14:31:25 2021
[2021-03-10T09:06:09.137Z]   OS/Arch:          linux/amd64
[2021-03-10T09:06:09.137Z]   Experimental:     false
[2021-03-10T09:06:09.137Z]  containerd:
[2021-03-10T09:06:09.137Z]   Version:          1.4.4
[2021-03-10T09:06:09.137Z]   GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
[2021-03-10T09:06:09.137Z]  runc:
[2021-03-10T09:06:09.137Z]   Version:          1.0.0-rc93
[2021-03-10T09:06:09.137Z]   GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
[2021-03-10T09:06:09.137Z]  docker-init:
[2021-03-10T09:06:09.137Z]   Version:          0.19.0
[2021-03-10T09:06:09.137Z]   GitCommit:        de40ad0
[2021-03-10T09:06:09.137Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-03-10T09:06:09.137Z] Unable to find image 'alpine:3.4' locally
[2021-03-10T09:06:09.703Z] 3.4: Pulling from library/alpine
[2021-03-10T09:06:09.961Z] c1e54eec4b57: Pulling fs layer
[2021-03-10T09:06:10.219Z] c1e54eec4b57: Download complete
[2021-03-10T09:06:10.477Z] c1e54eec4b57: Pull complete
[2021-03-10T09:06:10.477Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2021-03-10T09:06:10.477Z] Status: Downloaded newer image for alpine:3.4
[2021-03-10T09:06:12.378Z] Change permissions with write access of all files inside the specific folder
[2021-03-10T09:06:14.044Z] + python .ci/scripts/pre_archive_test.py
[2021-03-10T09:06:15.960Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2021-03-10T09:06:15.969Z] Running in /var/lib/jenkins/workspace/PR-24270-3-119b4368-cf0a-48ef-ac16-40024bb3fae5/src/github.com/elastic/beats/build
[2021-03-10T09:06:16.276Z] + rm -rf ve
[2021-03-10T09:06:16.276Z] + find . -type d -name vendor -exec rm -r {} ;
[2021-03-10T09:06:16.288Z] Recording test results
[2021-03-10T09:06:17.333Z] [Checks API] No suitable checks publisher found.
[2021-03-10T09:06:17.659Z] + go clean -modcache
[2021-03-10T09:06:21.245Z] Cleaning up /var/lib/jenkins/workspace/PR-24270-3-119b4368-cf0a-48ef-ac16-40024bb3fae5
[2021-03-10T09:06:21.246Z] Client: Docker Engine - Community
[2021-03-10T09:06:21.246Z]  Version:           20.10.3
[2021-03-10T09:06:21.246Z]  API version:       1.41
[2021-03-10T09:06:21.246Z]  Go version:        go1.13.15
[2021-03-10T09:06:21.246Z]  Git commit:        48d30b5
[2021-03-10T09:06:21.246Z]  Built:             Fri Jan 29 14:33:13 2021
[2021-03-10T09:06:21.246Z]  OS/Arch:           linux/amd64
[2021-03-10T09:06:21.246Z]  Context:           default
[2021-03-10T09:06:21.246Z]  Experimental:      true
[2021-03-10T09:06:21.246Z] 
[2021-03-10T09:06:21.246Z] Server: Docker Engine - Community
[2021-03-10T09:06:21.246Z]  Engine:
[2021-03-10T09:06:21.246Z]   Version:          20.10.3
[2021-03-10T09:06:21.246Z]   API version:      1.41 (minimum version 1.12)
[2021-03-10T09:06:21.246Z]   Go version:       go1.13.15
[2021-03-10T09:06:21.246Z]   Git commit:       46229ca
[2021-03-10T09:06:21.246Z]   Built:            Fri Jan 29 14:31:25 2021
[2021-03-10T09:06:21.246Z]   OS/Arch:          linux/amd64
[2021-03-10T09:06:21.246Z]   Experimental:     false
[2021-03-10T09:06:21.246Z]  containerd:
[2021-03-10T09:06:21.246Z]   Version:          1.4.4
[2021-03-10T09:06:21.246Z]   GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
[2021-03-10T09:06:21.246Z]  runc:
[2021-03-10T09:06:21.246Z]   Version:          1.0.0-rc93
[2021-03-10T09:06:21.246Z]   GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
[2021-03-10T09:06:21.246Z]  docker-init:
[2021-03-10T09:06:21.246Z]   Version:          0.19.0
[2021-03-10T09:06:21.246Z]   GitCommit:        de40ad0
[2021-03-10T09:06:21.246Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-03-10T09:06:27.992Z] Change permissions with write access of all files inside the specific folder
[2021-03-10T09:06:28.012Z] Running in /var/lib/jenkins/workspace/PR-24270-3-119b4368-cf0a-48ef-ac16-40024bb3fae5
[2021-03-10T09:06:33.074Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-03-10T09:06:33.133Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24270/src/github.com/elastic/beats
[2021-03-10T09:06:33.588Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-24270
[2021-03-10T09:06:33.631Z] [INFO] getVaultSecret: Getting secrets
[2021-03-10T09:06:33.719Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-10T09:06:34.359Z] + chmod 755 generate-build-data.sh
[2021-03-10T09:06:34.359Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24270/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24270/runs/3 FAILURE 3053230
[2021-03-10T09:06:34.610Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24270/runs/3/steps/?limit=10000 -o steps-info.json
[2021-03-10T09:06:35.520Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24270/runs/3/tests/?status=FAILED -o tests-errors.json

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 5375
Skipped 738
Total 6113

adriansr added a commit that referenced this pull request Mar 22, 2021
This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes #24268

(cherry picked from commit 22e20a1)
adriansr added a commit that referenced this pull request Mar 22, 2021
This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes #24268

(cherry picked from commit 22e20a1)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…stic#24459)

This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes elastic#24268

(cherry picked from commit 73b1fc1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Netflow module does not allow to disable sequence reset detection
4 participants