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

[Filebeat] system/auth module - Remove redundant grok wildcard #34550

Merged
merged 2 commits into from
Feb 16, 2023

Conversation

TotalKnob
Copy link
Contributor

@TotalKnob TotalKnob commented Feb 10, 2023

What does this PR do?

The Grok pattern of filebeat had a redundant operator in the pattern, %{SPACE}+, resulting in the regex (?:\s*)+ which has the + as a redundant operator.

This issue is fixed by removing the redundant + operator.

Why is it important?

"Without this change, when the module's ingest pipelines are setup in Elasticsearch, the Elasticsearch server logs get flooded with warnings" #15900

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

#34249, #15840
Closes #34249

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 10, 2023
@mergify
Copy link
Contributor

mergify bot commented Feb 10, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @TotalKnob? 🙏.
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 10, 2023

💚 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 preview

Expand to view the summary

Build stats

  • Start Time: 2023-02-14T18:16:59.265+0000

  • Duration: 68 min 22 sec

Test stats 🧪

Test Results
Failed 0
Passed 7555
Skipped 746
Total 8301

💚 Flaky test report

Tests succeeded.

🤖 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!)

@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 10, 2023
@cmacknz cmacknz requested review from leehinman and removed request for fearful-symmetry and faec February 10, 2023 20:21
@cmacknz
Copy link
Member

cmacknz commented Feb 10, 2023

/test

@cmacknz
Copy link
Member

cmacknz commented Feb 14, 2023

/test

Copy link
Contributor

@ShourieG ShourieG left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewkroh andrewkroh changed the title Remove Redundant Operator Filebeat [Filebeat] system/auth module - Remove redundant grok wildcard Feb 15, 2023
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

@andrewkroh andrewkroh merged commit 149e425 into elastic:main Feb 16, 2023
chrisberkhout pushed a commit that referenced this pull request Jun 1, 2023
The grok pattern of filebeat had a redundant operator in the pattern, %{SPACE}+, resulting in the regex (?:\s*)+ which has the + as a redundant operator.

Co-authored-by: ShourieG <105607378+ShourieG@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug][filebeat] regular expression has redundant nested repeat operator for system.auth.timestamp
5 participants