text code block:from .alerts-security.* | where kibana.alert.rule.type == "machine_learning" | stats Esql.count_distinct_job_id = COUNT_DISTINCT(job_id), Esql.job_id_values = VALUES(job_id), Esql.rule_name_values = VALUES(kibana.alert.rule.name), Esql.influencer_field_values = VALUES(influencers.influencer_field_values), Esql.influencer_field_name = VALUES(influencers.influencer_field_name) by influencers.influencer_field_values, process.name, host.name | where Esql.count_distinct_job_id >= 3 and not influencers.influencer_field_values in ("root", "SYSTEM") | KEEP influencers.influencer_field_values, process.name, host.name, Esql.*
Install detection rules in Elastic Security
Detect Multiple Machine Learning Alerts by Influencer Field in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).