> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Filtering Rules from the Events Page

USM Anywhere enables you to make the <Tooltip tip="Sensors are deployed into an on-premises, cloud, or multi-cloud environment to collect logs and other security-related data. This data is normalized and then securely forwarded to USM Anywhere for analysis and correlation.">sensor</Tooltip> drops future <Tooltip tip="Any traffic or data exchange detected by LevelBlue products through a sensor or external devices such as a firewall.">events</Tooltip> that match the rule. These events will be neither correlated nor stored. Through these rules, you can define which event data you are going to store in USM Anywhere. You will pay for the data you use.

<Note>
  \*\*Note: \*\*Filtering rules is not retroactive. The rule applies to future items, but not to to previous items, even if those items follow the rule.
</Note>

<Warning>
  **Important:** You can't use a correlation list when you create a filtering rule.
</Warning>

**To create a filtering rule from the Events page**

1. Go to **Activity > Events**.

2. Search the events which you want to include in the filtering rule.

   See [Searching Events](searching-events) for more information.

3. Click one of them.

4. Select **Create Rule > Create Filtering Rule**.

5. Select a Boolean operator.

   The options are AND, OR, AND NOT, and OR NOT.

6. Select a packet type in the Match drop-down list.

   <Frame>
     <img src="https://mintcdn.com/levelblue-5324744e/LRsr4s1iGr_CM6ff/images/usm-anywhere/user-guide/rules-management/matchcombofiltsupp.webp?fit=max&auto=format&n=LRsr4s1iGr_CM6ff&q=85&s=644cde037e34d769431ea7df02f01014" width="308" height="263" data-path="images/usm-anywhere/user-guide/rules-management/matchcombofiltsupp.webp" />
   </Frame>

   * **Logs**: Use this packet type for event-based rules.
   * **Configuration Issues**: Use this packet type for configuration issues-based rules<Tooltip tip="This packet type refers to configuration issues that are used to identify incorrect uses of certain features. For example, the app for AWS assesses your configuration of AWS to identify insecure use of the AWS security features.">¹</Tooltip>.
   * **Vulnerabilities**: Use this packet type for vulnerabilities-based rules.
   * **Alarms**: Use this packet type for console user alarms-based rules.

7. You have already suggested property values to create a matching condition. If you want to add new property values, click **Add Condition**.

   <Note>
     \*\*Note: \*\*Less common parameters will appear as paired *Custom Header N* and *Custom Field N* rows with the parameter's name and value. *N* represents the number that is automatically given to the parameter.
   </Note>

   <Note>
     **Note:** If the field is related to the name of a country, you should use the country code defined by the [ISO 3166](https://www.iso.org/iso-3166-country-codes.html).
   </Note>

   <Note>
     **Note:** The Sources or Destinations field needs to match the universally unique identifier (UUID) of the event or alarm. You can use the Source Name or Destination Name field instead.
   </Note>

   <Warning>
     **Important:** Instead of using the `equals` and `equals`, `case insensitive` operators for array fields, LevelBlue recommends the use of the `in` or `contains` operators.
   </Warning>

   <Note>
     **Note:** If you need to add a property value that maps with a property key, you need to know the mapping of the field. See [Determining the Mapping of a Field](../rules-management/mapping-field) for more information.
   </Note>

8. (Optional) Click **Add Group** to group your conditions.

   <Note>
     **Note:** See [Operators in the Orchestration Rules](../rules-management/orchestration-rules-operators) for more information.
   </Note>

9. In the **Occurrences** text box, enter the number of event occurrences that you want to produce a match on the conditional expression to trigger the rule.

   You can enter the number of occurrences or use the arrows to scroll the value up or down. You can enter a number between 1 and 100.

   <Note>
     Note: The current rule box shows you the syntax of your rule, and the rule verification box reviews that syntax before saving the rule.
   </Note>

10. Click **Next**.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/LRsr4s1iGr_CM6ff/images/usm-anywhere/user-guide/rules-management/ruleverification.webp?fit=max&auto=format&n=LRsr4s1iGr_CM6ff&q=85&s=52719fcab619098656679ab0756735fa" width="358" height="234" data-path="images/usm-anywhere/user-guide/rules-management/ruleverification.webp" />
    </Frame>

    <Warning>
      **Important:** A dialog box opens if there are warning messages. Click **Cancel** to review the warning messages, or click **Accept** to continue creating the rule.
    </Warning>

11. Enter a name for the rule.

12. (Optional) Enter a description for identifying this rule.

13. Click **Save**.

    The created rule displays in the list of rules. You can see it from **Settings > Rules**. See [Orchestration Rules](../rules-management/orchestration-rules) for more information.

    <Warning>
      **Important:** It takes a few minutes for an orchestration rule to become active.
    </Warning>
