Repository navigation
fix(patterns): mask dates before Drain #3551
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
Draft
bcanvural
wants to merge
8
commits into
ClickHouse:main
Choose a base branch
from
bcanvural:fix/patterns-mask-dated-lines
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
42375f8
fix(patterns): mask timestamps and ids before Drain, mine emerging_si…
bcanvural 8c44344
fix(patterns): mine emerging_signals windows in a fixed order, half-o…
bcanvural 249470d
fix(patterns): treat underscores as separators in the bare date, time…
bcanvural 80ce437
fix(patterns): report new messages that merged into a baseline patter…
bcanvural d3e0fa0
fix(patterns): narrow this PR to masking; one-tree emerging_signals m…
bcanvural 60f5f65
Merge branch 'main' into fix/patterns-mask-dated-lines
bcanvural 3364e50
fix(patterns): name the default masks <TS> and <ID>, and match them i…
bcanvural 3eb9ffc
fix(patterns): mask only dates, as one word each
bcanvural File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| '@hyperdx/common-utils': patch | ||
| '@hyperdx/api': patch | ||
| '@hyperdx/cli': patch | ||
| --- | ||
|
|
||
| fix: MCP `event_patterns`, `emerging_signals` and search denoise, and the CLI, | ||
| no longer split the same log line by its date. Before mining, the Drain miner | ||
| masks the date of a timestamp (weekday, day, month, year) to `<DATE>`, so dated | ||
| lines from different days, months or years get the same template instead of one | ||
| "new" and one "gone". Times and ids are not masked. Within one day lines group | ||
| as before, except that klog lines with different severity letters are no longer | ||
| merged. No mask changes a line's token count: the `event_patterns` drill-down | ||
| predicate matches `<DATE>` as one or more non-whitespace characters, also inside | ||
| a token, and search denoise masks bodies the same way before matching. Masking | ||
| instructions get an optional `perWord` flag (default off, as in drain3). The web | ||
| app's Event patterns view uses its own drain3 config and is unchanged. | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔵 minor — Changeset does not bump
@hyperdx/clieven though the CLI's behaviour changespackages/clibundles@hyperdx/common-utils(it is a devDependency; see packages/cli/package.json andTemplateMinerConfigat packages/cli/src/cli.tsx:2302, plusminePatternsin usePatternData.ts). The changeset text says 'and the CLI', but only common-utils and api are released. Add'@hyperdx/cli': patchso the CLI change ships.Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond