Open
Description
openedon Feb 23, 2021
With #92036, the Alerting team enabled the ability to filter on string parameters within our custom alert params. As a result, we should be able to use this to remove our internal_tags
workaround for filtering on the immutable
custom field. While immutable is a boolean
, this fix leverages the flattened mapping under the hood, and so we should be able to use the string representation "true"
or "false"
to filter rules accordingly. e.g. alert.attributes.params.immutable:"true"
Testing real quick, I modified:
to be:
const showCustomRuleFilter = filterOptions.showCustomRules
? [`alert.attributes.params.immutable: "false"`]
: [];
const showElasticRuleFilter = filterOptions.showElasticRules
? [`alert.attributes.params.immutable: "true"`]
: [];
And this appears to work! 🎉
For more details on the internal_tags
implementation, please see the original PR here: #52838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Anything related to Security Solution's Detection RulesSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Security Detection Rule Management TeamSecurity Detection Response TeamSecurity Solution Simplified Protection Management ThemeImprovement of the software architecture and operational architecture