# Drop\_event from Win firewall

**URL:** https://discuss.elastic.co/t/drop-event-from-win-firewall/320334
**Category:** Beats
**Tags:** filebeat
**Created:** [December 2, 2022, 8:16am UTC](https://discuss.elastic.co/t/drop-event-from-win-firewall/320334 "2022-12-02T08:16:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vabe](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vabe](https://discuss.elastic.co/u/vabe)
#### Post date: [December 2, 2022, 8:16am UTC](https://discuss.elastic.co/t/drop-event-from-win-firewall/320334/1 "2022-12-02T08:16:38Z")

</div>

Hey guys, I'm looking for help here as a last resort. Can't find a solution..

I want to drop events from Win firewall log

the line is:

> message  
> 2022-12-02 08:53:10 ALLOW TCP 127.0.0.1 127.0.0.1 50740 389 0 - 0 0 0 - - - SEND

I don't want to send every line which contains **127.0.0.1 127.0.0.1**

So I tried literally tenths of regex combinations and nothing worked. All event's still come threw to my Graylog server.

```auto
processors:
    - drop_event:
        when:
            regexp:
                message: '(127\.0\.0\.1).(127\.0\.0\.1)'

```

```auto
processors:
    - drop_event:
        when:
            regexp:
                message: '\s\b(127\.0\.0\.1)\b\s\b(127\.0\.0\.1)\b\s'

```

etc etc..

Is there an obvious mistake? Please help

---

<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 30, 2022, 10:17am UTC](https://discuss.elastic.co/t/drop-event-from-win-firewall/320334/2 "2022-12-30T10:17:18Z")

</div>

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