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

wrong if statement in x-pack/filebeat/module/fortinet/firewall/ingest/event.yml #34446

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

0x00Jeff
Copy link

@0x00Jeff 0x00Jeff commented Feb 1, 2023

What does this PR do?

this PR corrects a wrong field name in event.yml config for beats

Why is it important?

without this correction, filebeats will send the wrong output to elasticsearch when the type of the log entry is event

in this line, the rename processor tests if destination.address null, if yes it renames fortinet.firewall.dst_host to it, and in this, the processor (mistakenly) tests if destination.address is null again, then renames fortinet.firewall.dst_host to destination.domain. it should test if destination.domain is null instead of ctx.destination.address

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.

Author's Checklist

  • [ ]

How to test this PR locally

in the case where the change needs to be tested, one has to setup filebeats parse fortinet logs that are of type event

@0x00Jeff 0x00Jeff requested a review from a team as a code owner February 1, 2023 16:05
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 1, 2023
@cla-checker-service
Copy link

cla-checker-service bot commented Feb 1, 2023

❌ Author of the following commits did not sign a Contributor Agreement:
5848f45, 24c7fa2, d3c3b4e

Please, read and sign the above mentioned agreement if you want to contribute to this project

@0x00Jeff 0x00Jeff changed the title correct a wrong field name in filebeats event.yml config corrected a wrong field name in filebeats event.yml config Feb 1, 2023
@mergify
Copy link
Contributor

mergify bot commented Feb 1, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @0x00Jeff? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@elasticmachine
Copy link
Collaborator

elasticmachine commented Feb 1, 2023

❕ Build Aborted

The PR is not allowed to run in the CI yet

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

  • Start Time: 2023-02-08T13:14:10.221+0000

  • Duration: 5 min 1 sec

Steps errors 2

Expand to view the steps failures

Load a resource file from a library
  • Took 0 min 0 sec . View more details here
  • Description: approval-list/elastic/beats.yml
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: githubApiCall: The REST API call https://api.github.com/orgs/elastic/members/0x00Jeff return the message : java.lang.Exception: httpRequest: Failure connecting to the service https://api.github.com/orgs/elastic/members/0x00Jeff : httpRequest: Failure connecting to the service https://api.github.com/orgs/elastic/members/0x00Jeff : Code: 404Error: {"message":"User does not exist or is not a member of the organization","documentation_url":"https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user"}

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@0x00Jeff 0x00Jeff changed the title corrected a wrong field name in filebeats event.yml config wrong if statement in x-pack/filebeat/module/fortinet/firewall/ingest/event.yml Feb 2, 2023
@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 Feb 6, 2023
@kcreddy
Copy link
Contributor

kcreddy commented Feb 7, 2023

Hey @0x00Jeff, thanks for opening the PR.
Could you please do the following:

  1. Sign the CLA
  2. Add changelog entry
  3. Run integration tests

Copy link
Contributor

@kcreddy kcreddy left a comment

Choose a reason for hiding this comment

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

Change requested as per the comment: #34446 (comment)

@0x00Jeff
Copy link
Author

0x00Jeff commented Feb 8, 2023

hey @kcreddy , I don't know what should I put in the title field in the CLA to sign it as an individual ? can you explain what goes in to that field ?

@mergify
Copy link
Contributor

mergify bot commented Feb 8, 2023

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b main upstream/main
git merge upstream/main
git push upstream main

@kcreddy
Copy link
Contributor

kcreddy commented Feb 10, 2023

Hey @0x00Jeff, title field not quite important to us. Usually contributors write there whatever they want. Like Mr/Ms/Engineer/Developer/DevOps

@kcreddy kcreddy added the bugfix label Feb 23, 2023
@mergify
Copy link
Contributor

mergify bot commented Jul 27, 2023

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b main upstream/main
git merge upstream/main
git push upstream main

1 similar comment
Copy link
Contributor

mergify bot commented Feb 5, 2024

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b main upstream/main
git merge upstream/main
git push upstream main

Copy link
Contributor

mergify bot commented Feb 5, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @0x00Jeff? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@narph narph added Team:Security-Deployment and Devices Deployment and Devices Team in Security Solution and removed Team:Security-External Integrations labels Feb 8, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Filebeat Filebeat Team:Security-Deployment and Devices Deployment and Devices Team in Security Solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants