Skip to content

Commit 8693a55

Browse files
fix(search-events): Point the logs agent at attributes before message regex
A value with its own attribute, like a response status, should filter that attribute rather than a regex over message text. Refs LOGS-1014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5bbb4b0 commit 8693a55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/mcp-core/src/tools/support/search-events

‎packages/mcp-core/src/tools/support/search-events/config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ LOGS TEXT MATCHING (LOGS DATASET ONLY):
130130
- Negate with a leading !: !message://worker \\d+ ready//
131131
- There is no regex list form (key:[//a//,//b//] is a literal list); put alternatives inside one pattern: message://(upload|download) of \\d+ bytes failed//
132132
- For an exact set of values, keep the list: severity:[error,fatal], not severity://error|fatal//
133+
- Regex on message is for text inside the message. When the user asks about a value that has its own attribute (e.g. response status), filter that attribute instead
133134
- NEVER quote a regex: message:"//...//" is a literal string match, not a regex
134135
- The pattern ends at the first // followed by a space, ) or the end of the query. Spaces, parentheses, and a // followed by anything else (https?://host) are fine unquoted; write \\/\\/ for a literal // followed by a space or )
135136
- Regex uses RE2 syntax (no lookarounds or backreferences), matches anywhere unless anchored, and is case sensitive; prefix the pattern with (?i) to ignore case

0 commit comments

Comments
 (0)