# Message Filter

The **Message Filter** is a pattern used to eliminate undesired messages from a channel based on a set of criteria.

In Ylem pipelines it can be implemented by checking these criteria in the "[Condition](https://docs.ylem.co/pipelines/tasks-ip/condition)" block. For example, in the pipeline below, it checks the criteria and process message if it matches or sends a notification alert to responsive engineers if it doesn't.

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FuUzlxnYNXTgsYeRQzi31%2FScreenshot%202024-05-03%20at%2023.29.34.png?alt=media&#x26;token=3e681e2d-9e1a-4b2e-9179-7c003ee14f6c" alt=""><figcaption></figcaption></figure>
