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

# Set Exclusion Rules

> Control which logs are stored by building exclusion rules from hosts, apps, and queries, using one or all three together.

Exclusion rules let you control what logs are stored. You can access Exclusion Rules by going to **[Usage > Exclusion Rules](https://app.mezmo.com/manage/exclusion-rules).**

There are three parts to a rule.

* **Hosts** - Exclude [hosts](/docs/introducing-the-agent) configured on the app.
* **Apps** - Exclude [apps](/docs/search-and-filter).
* **Query** - Create a [log query](/docs/search-and-filter)

You can include one or all to exclude logs.

<Frame caption="Create exclusion rules using Hosts, Apps and Query. Use one or all exclusion rules.">
  <img src="https://mintcdn.com/mezmo-9a59581a/5cIdgEAM73o6sWZ8/images/docs/7plpxrr3owywqawm2i0bam58tfo63xhvu490y7ztxymfw8wjmq9c2zqrfm4ac0bu.png?fit=max&auto=format&n=5cIdgEAM73o6sWZ8&q=85&s=2f18b1be3509ec8ad8408758480cd576" alt="Image" width="1510" height="824" data-path="images/docs/7plpxrr3owywqawm2i0bam58tfo63xhvu490y7ztxymfw8wjmq9c2zqrfm4ac0bu.png" />
</Frame>
