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"]