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

[apache_tomcat.access] Restructure Grok pattern and ingest pipeline to improve performance #8615

Merged
merged 10 commits into from Dec 1, 2023
Merged

[apache_tomcat.access] Restructure Grok pattern and ingest pipeline to improve performance #8615

merged 10 commits into from Dec 1, 2023

Conversation

SimonKoetting
Copy link
Contributor

@SimonKoetting SimonKoetting commented Nov 30, 2023

The customer is using this Integration on an ESS and had ~10-14ms per doc average processing Time.
image
After taking a look at the pipeline definition I recognised the "inefficient" way how the grok processing is done.
First test of restructuring the grok process (without changing what it is doing, just how it is done) I had an average of 0-5-0.-7ms, so a huge performance improvement with just a little restructuring.
image

@elasticmachine
Copy link

elasticmachine commented Nov 30, 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-11-30T21:32:39.205+0000

  • Duration: 27 min 50 sec

Test stats 🧪

Test Results
Failed 0
Passed 54
Skipped 0
Total 54

🤖 GitHub comments

Expand to view the GitHub comments

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

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Nov 30, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (9/9) 💚
Files 100.0% (9/9) 💚 15.385
Classes 100.0% (9/9) 💚 15.385
Methods 97.531% (79/81) 👍 7.7
Lines 82.528% (973/1179) 👎 -6.687
Conditionals 100.0% (0/0) 💚

@SimonKoetting
Copy link
Contributor Author

/test

@SimonKoetting SimonKoetting marked this pull request as ready for review November 30, 2023 14:53
@SimonKoetting SimonKoetting requested a review from a team as a code owner November 30, 2023 14:53
Copy link
Contributor

@ishleenk17 ishleenk17 left a comment

Choose a reason for hiding this comment

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

Some nits. Otherwise the change looks good. Thanks

packages/apache_tomcat/manifest.yml Outdated Show resolved Hide resolved
packages/apache_tomcat/changelog.yml Outdated Show resolved Hide resolved
@shmsr shmsr added the enhancement New feature or request label Nov 30, 2023
@shmsr shmsr changed the title [Enhancement][apache_tomcat.access] Restructure Grok to improve performance [apache_tomcat.access] Restructure Grok to improve performance Nov 30, 2023
@shmsr shmsr changed the title [apache_tomcat.access] Restructure Grok to improve performance [apache_tomcat.access] Restructure Grok pattern and pipeline to improve performance Nov 30, 2023
@shmsr shmsr changed the title [apache_tomcat.access] Restructure Grok pattern and pipeline to improve performance [apache_tomcat.access] Restructure Grok pattern and ingest pipeline to improve performance Nov 30, 2023
Copy link
Contributor Author

@SimonKoetting SimonKoetting left a comment

Choose a reason for hiding this comment

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

fixed/comment all suggestions

Copy link
Contributor

@ishleenk17 ishleenk17 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@harnish-elastic harnish-elastic left a comment

Choose a reason for hiding this comment

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

LGTM!

@shmsr shmsr merged commit 0b9e6bd into elastic:main Dec 1, 2023
4 checks passed
@elasticmachine
Copy link

Package apache_tomcat - 1.1.0 containing this change is available at https://epr.elastic.co/search?package=apache_tomcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants