# Packetbear drop event doesnt work

**URL:** <https://discuss.elastic.co/t/packetbear-drop-event-doesnt-work/152944>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [October 18, 2018, 7:14am UTC](https://discuss.elastic.co/t/packetbear-drop-event-doesnt-work/152944 "2018-10-18T07:14:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey.k](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey.k/32/23153_2.png) [@Sergey.k](https://discuss.elastic.co/u/Sergey.k)\
**Post date:** [October 18, 2018, 7:14am UTC](https://discuss.elastic.co/t/packetbear-drop-event-doesnt-work/152944/1 "2018-10-18T07:14:02Z")

</div>

packetbaet version 6.3

Packetbeat don't drop event when path field are equal the text "/application/some-text"

packetbeat.yml:

```
packetbeat.interfaces.device: any

packetbeat.flows:
  enabled: false

packetbeat.protocols:
- type: http
  ports:
  - 80
  send_request: true
  send_response: true
  include_body_for:
  - text/xml
  - application/json
  - application/hal+json
  - text/plain

fields:
  env: prod

fields_under_root: true

setup.template.settings:
  index.number_of_shards: 3

output.elasticsearch:
  hosts: ["http://192.168.2.18:9200"]

processors:
- drop_event:
    when:
      equals:
        path: "/application/some-text"

processors:
- drop_fields:
    fields: ["http.response.body","http.request.body"]
```

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [October 25, 2018, 2:30pm UTC](https://discuss.elastic.co/t/packetbear-drop-event-doesnt-work/152944/2 "2018-10-25T14:30:25Z")

</div>

Hi,

You cannot define two `processors` sections. The latest one is overriding the previous, so only the `drop_fields` processor is enabled. If you want more than one processor you need to group all of them under a single processors key:

```auto
processors:
- drop_event:
    when:
      equals:
        path: "/application/some-text"
- drop_fields:
    fields: ["http.response.body","http.request.body"]

```

Also, I'm curious why you would ask Packetbeat to include the request and response bodies using `include_body_for` and then drop the fields, but maybe your configuration is clipped and there is some condition for the `drop_fields` processor.

---

<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:** [November 22, 2018, 2:30pm UTC](https://discuss.elastic.co/t/packetbear-drop-event-doesnt-work/152944/3 "2018-11-22T14:30:26Z")

</div>

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