fix(auditd): reduce grok backtracking in pipeline#17648
Merged
andrewkroh merged 2 commits intoelastic:mainfrom Mar 16, 2026
Merged
fix(auditd): reduce grok backtracking in pipeline#17648andrewkroh merged 2 commits intoelastic:mainfrom
andrewkroh merged 2 commits intoelastic:mainfrom
Conversation
Address three parser hot spots in auditd ingest processing. - Replace one monolithic grok with conditional grok paths to avoid failing expensive patterns on unrelated events. - Remove unbounded quoted payload matching from the msg branch by using quote-bounded classes. - Replace the fallback key-value capture shape that relied on GREEDYDATA-style scanning with bounded pre-captures and safer fallback matching for non-kv records. On benchmark pipeline runs, processing_time dropped from 0.42s (source_doc_count=70, doc_count=1000) to 0.08s in this branch. The previous single grok hot spot at 75% total time and 315us/doc is no longer dominant after splitting and bounding captures. Also bump auditd package version to 3.22.2 and add a changelog bugfix entry for the backtracking fix.
a09c074 to
198dd09
Compare
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
🚀 Benchmarks reportTo see the full report comment with |
nfritts
approved these changes
Mar 12, 2026
💚 Build Succeeded
History
|
Tacklebox
approved these changes
Mar 12, 2026
|
Package auditd - 3.22.2 containing this change is available at https://epr.elastic.co/package/auditd/3.22.2/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
changelog.ymlfile.