# Drop event for Apache Module

**URL:** <https://discuss.elastic.co/t/drop-event-for-apache-module/254913>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [November 10, 2020, 1:09pm UTC](https://discuss.elastic.co/t/drop-event-for-apache-module/254913 "2020-11-10T13:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [November 10, 2020, 1:09pm UTC](https://discuss.elastic.co/t/drop-event-for-apache-module/254913/1 "2020-11-10T13:09:29Z")

</div>

Hi Team,

I am trying drop a specific event from filebeat apache module , i have tried below drop event processor and its not working.  
Event to be dropped if the `url.original` field contains `refresh` as the text

`url.original: /ey/refresh.defaults.notifynewmessages.do?XY=1605013288470`

In the above field , only this content `refresh.defaults.notifynewmessages` is static and all other contents are dynamic

I have updated filebeat.yml file to drop the event as below.

```
  - drop_event:
      when:
        or:
         - contains:
            message: "HealthCheck" - This is working fine and event is getting dropped 
         - contains:
            url.original: "refresh" - This is not working.

```

Do i need to update this in the ingest pipeline if so how i can do that. Please help.

Thanks,  
Ajesh

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [November 10, 2020, 11:28pm UTC](https://discuss.elastic.co/t/drop-event-for-apache-module/254913/2 "2020-11-10T23:28:29Z")

</div>

Hi! Does the output event from filebeat includes url.original with "refresh"? If you just simplify this processor to only drop event when url.original contains "refresh", does that work?

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [November 12, 2020, 1:03pm UTC](https://discuss.elastic.co/t/drop-event-for-apache-module/254913/3 "2020-11-12T13:03:21Z")

</div>

Hello Kaiyan,

Yes, this is one of the field which we get when we enable the apache module for filebeat.

`url.original: /ey/refresh.defaults.notifynewmessages.do?XY=1605013288470`

As you suggested i will try to keep to only this drop event and check if its working

Thanks,  
Ajesh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 10, 2020, 3:03pm UTC](https://discuss.elastic.co/t/drop-event-for-apache-module/254913/4 "2020-12-10T15:03:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
