[Rule Tunings] GWS Rules w/ zero alerts#6210
Open
imays11 wants to merge 2 commits into
Open
Conversation
Shared tuning across four Google Workspace admin rules with zero fleet alert volume despite production maturity. All were validated in trade-lab with working queries. Common changes: - Scoped index to logs-google_workspace.admin-* - Removed unnecessary event.category / event.type - Added investigation fields - Updated investigation guides to align with highlighted fields and current Admin console paths ### Gmail routing rule — expanded scope and query (largest change): Previously matched only legacy custom mail routes (EMAIL_ROUTE, MESSAGE_SECURITY_RULE). Now covers the full Gmail admin collection surface: - Routing (UNIFIED_MAIL_ROUTING, legacy MESSAGE_SECURITY_RULE) — also deliver to, change envelope recipient - Recipient address map (ALIAS_TABLE) — forwarding by address mapping - Mail hosts / outbound gateway (EMAIL_ROUTE) - Query matches legacy (CREATE_GMAIL_SETTING / CHANGE_GMAIL_SETTING) and current (CREATE_APPLICATION_SETTING / CHANGE_APPLICATION_SETTING) audit actions, on setting.name or setting.metadata.rule.type. These values will likely change after the migration period ending Aug 2026, we'll need to reassess this rule to make sure the values still align.
Contributor
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
Aegrah
approved these changes
May 29, 2026
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.
Pull Request
Issue link(s):
Summary - What I changed
Shared tuning across four Google Workspace admin rules with zero fleet alert volume despite production maturity. All were validated in trade-lab with working queries.
Common changes:
logs-google_workspace.admin-*Gmail routing rule — expanded scope and query (largest change):
Previously matched only legacy custom mail routes (EMAIL_ROUTE, MESSAGE_SECURITY_RULE). Now covers the full Gmail admin collection surface:
filebeatindex because new field is not includedgoogle_workspace.admin.setting.metadata.rule.typefilebeatis removed, I reduced the lookback window to account for the much shorter poll interval + lag time the Integration uses for Admin data stream (15 min poll + 3 min lag) >from = "now-20m"setting.nameorsetting.metadata.rule.type. These values will likely change after the migration period ending Aug 2026, we'll need to reassess this rule to make sure the values still align.How To Test
Manually triggered each rule via the Admin console, verified they triggered as expected in our TRaDE test stack.