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

x-pack/winlogbeat/module/powershell: improve details regexp pattern performance #36178

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Jul 31, 2023

What does this PR do?

The details regexp pattern for the powershell data stream was improved in the windows integration in elastic/integrations#6154 to reduce backtracking costs that caused regexp costs to exceed the set runtime limits. The same pattern on other data streams and in winlogbeat was not updated. This change brings winlogbeat up to date with the change.

Why is it important?

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.
  • I have made my commit title and message explanatory about the purpose and the reason of the change

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jul 31, 2023
@mergify mergify bot assigned efd6 Jul 31, 2023
…erformance

The details regexp pattern for the powershell data stream was improved
in the windows integration in elastic/integrations#6154 to reduce
backtracking costs that caused regexp costs to exceed the set runtime
limits. The same pattern on other data streams and in winlogbeat was not
updated. This change brings winlogbeat up to date with the change.
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 31, 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-07-31T04:56:27.546+0000

  • Duration: 38 min 21 sec

Test stats 🧪

Test Results
Failed 0
Passed 111
Skipped 0
Total 111

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

@efd6
Copy link
Contributor Author

efd6 commented Jul 31, 2023

/test

@efd6 efd6 marked this pull request as ready for review July 31, 2023 07:04
@efd6 efd6 requested a review from a team as a code owner July 31, 2023 07:04
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@bhapas bhapas left a comment

Choose a reason for hiding this comment

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

Would it be possible to add an ingest test in this module just as in elastic/integrations#6154

@efd6 efd6 requested a review from bhapas July 31, 2023 12:14
@efd6
Copy link
Contributor Author

efd6 commented Jul 31, 2023

There is already a 4103 with a command invocation that exercises this.

@efd6 efd6 merged commit d8db41b into elastic:main Jul 31, 2023
mergify bot pushed a commit that referenced this pull request Jul 31, 2023
…erformance (#36178)

The details regexp pattern for the powershell data stream was improved
in the windows integration in elastic/integrations#6154 to reduce
backtracking costs that caused regexp costs to exceed the set runtime
limits. The same pattern on other data streams and in winlogbeat was not
updated. This change brings winlogbeat up to date with the change.

(cherry picked from commit d8db41b)
efd6 pushed a commit that referenced this pull request Jul 31, 2023
…etails regexp pattern performance (#36186)

The details regexp pattern for the powershell data stream was improved
in the windows integration in elastic/integrations#6154 to reduce
backtracking costs that caused regexp costs to exceed the set runtime
limits. The same pattern on other data streams and in winlogbeat was not
updated. This change brings winlogbeat up to date with the change.

(cherry picked from commit d8db41b)
Scholar-Li pushed a commit to Scholar-Li/beats that referenced this pull request Feb 5, 2024
…erformance (elastic#36178)

The details regexp pattern for the powershell data stream was improved
in the windows integration in elastic/integrations#6154 to reduce
backtracking costs that caused regexp costs to exceed the set runtime
limits. The same pattern on other data streams and in winlogbeat was not
updated. This change brings winlogbeat up to date with the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants