--- id: write-first-seen-rule title: Write a First Seen Rule sidebar_label: First Seen Rule description: First seen rules allow you to generate a signal when behavior by an entity (user) is encountered that has not been seen before. keywords: - sumo logic - cloud siem - first seen rule - behavioral analytics slug: /help/docs/cse/rules/write-first-seen-rule/ canonical: https://www.sumologic.com/help/docs/cse/rules/write-first-seen-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 first seen 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 first seen rules with the [`sumologic_cse_first_seen_rule`](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/cse_first_seen_rule) resource. ::: ## About first seen rules First seen rules allow you to generate a signal when behavior by an entity (such as a user) is encountered that has not been seen before. For example, a first seen rule might look for the events like the following: * First time a user logged in from a new geographic location (geolocation) * Newly created or added admin accounts * High severity EDR alert seen for the first time * MFA acceptance from first seen device :::training Micro Lesson Watch this micro lesson to learn more about first seen rules.