[elastic_agent] Update status_change alerting rule templates for namespace routing - #20904
Open
Nikshaan wants to merge 2 commits into
Open
[elastic_agent] Update status_change alerting rule templates for namespace routing#20904Nikshaan wants to merge 2 commits into
Nikshaan wants to merge 2 commits into
Conversation
Contributor
ReviewersBuildkite won't run for external contributors automatically; you need to add a comment:
NOTE: https://github.com/elastic/integrations/blob/main/.buildkite/pull-requests.json contains all those details. |
Contributor
|
/test |
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Contributor
|
✅ All changelog entries have the correct PR link. |
Contributor
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
|
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.
Summary
Fixes elastic/kibana#286395 and elastic/kibana#287194
This change sends Fleet agent status change events to the policy namespace rather than always
default. These templates use theFROM logs-elastic_agent.status_change-defaultpattern in their ES|QL queries, without this fix, alerting would not match events for any non-default namespace agent policies once the Kibana fix goes out.Changes
Updated the ES|QL
FROMclause in all 4 status-based alerting rule templates tologs-elastic_agent.status_change-*fromlogs-elastic_agent.status_change-default:No other changes were made to these files.
Note
Existing rules created from these templates (prior to this fix) are separate copies and will not get this change automatically - marking for feedback on whether we need a release note or migration.
Version
Version bumped for elastic_agent package from 2.9.4 to 2.9.5, changelog entry added.