# Filters on sensu plugins

**URL:** <https://discourse.sensu.io/t/filters-on-sensu-plugins/426>\
**Category:** Sensu Classic (EOL)\
**Created:** [May 5, 2015, 6:49pm UTC](https://discourse.sensu.io/t/filters-on-sensu-plugins/426 "2015-05-05T18:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qgriffith](https://avatars.discourse-cdn.com/v4/letter/q/6f9a4e/32.png) [@Qgriffith](https://discourse.sensu.io/u/Qgriffith)\
**Post date:** [May 5, 2015, 6:49pm UTC](https://discourse.sensu.io/t/filters-on-sensu-plugins/426/1 "2015-05-05T18:49:51Z")

</div>

Hello,

I have been going through the sensu documentation and have managed to setup my own playground environment. I am taking a look at the filter feature of sensu, and am trying to figure out how to use the filters with the pager duty plugin. It looks like filters are only evaluated on a handler definition. I don’t current have a handler definition for pager duty since it is a plugin. Is there a way to filter out events based off a fitler so that they do not go to pager duty?

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [May 6, 2015, 2:11am UTC](https://discourse.sensu.io/t/filters-on-sensu-plugins/426/2 "2015-05-06T02:11:16Z")

</div>

As far as I know, pagerduty is a handler. Are you using this?  
[https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/pagerduty.rb](https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/pagerduty.rb)

> **···**
>
> On Tue, May 5, 2015 at 11:49 AM, \<qgriffith@saymedia.com\> wrote:
> 
> > Hello,
> > 
> > I have been going through the sensu documentation and have managed to setup  
> > my own playground environment. I am taking a look at the filter feature of  
> > sensu, and am trying to figure out how to use the filters with the pager  
> > duty plugin. It looks like filters are only evaluated on a handler  
> > definition. I don't current have a handler definition for pager duty since  
> > it is a plugin. Is there a way to filter out events based off a fitler so  
> > that they do not go to pager duty?
