--- id: write-outlier-rule title: Write an Outlier Rule sidebar_label: Outlier Rule description: Outlier rules allow you to generate a signal when behavior by an entity (such as a user) is encountered that qualifies as an outlier from expected behavior. keywords: - cloud siem - cse - outlier rule - behavioral analytics slug: /help/docs/cse/rules/write-outlier-rule/ canonical: https://www.sumologic.com/help/docs/cse/rules/write-outlier-rule/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; import CseRule from '../../reuse/cse-rule-description-links.md'; import Iframe from 'react-iframe'; This topic has information about outlier rules and how to create them in the Cloud SIEM UI. :::info If you are new to writing rules, see [About Cloud SIEM Rules](/docs/cse/rules/about-cse-rules) for information about rule expressions and other rule options. ::: import TerraformLink from '../../reuse/terraform-link.md'; :::tip You can use Terraform to manage outlier rules with the [`sumologic_cse_outlier_rule`](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/cse_outlier_rule) resource. ::: ## About outlier rules Outlier rules allow you to generate a signal when behavior by an entity (such as a user) is encountered that deviates from its baseline activity. For each outlier rule, you create a filter condition to look for out-of-the-ordinary behavior that could indicate risk. For example, an outlier rule might look for the events like the following: * Spike in login failures from a user * Abnormal number of high severity endpoint alerts * Spike in EC2 instance creation * Abnormal volume of data sent to third-party storage :::training Micro Lesson Watch this micro lesson to learn more about outlier rules.