# Filter events by source using REGEXP

**URL:** <https://discuss.elastic.co/t/filter-events-by-source-using-regexp/262918>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [February 2, 2021, 1:20am UTC](https://discuss.elastic.co/t/filter-events-by-source-using-regexp/262918 "2021-02-02T01:20:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NadyLeez123](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@NadyLeez123](https://discuss.elastic.co/u/NadyLeez123)\
**Post date:** [February 2, 2021, 1:20am UTC](https://discuss.elastic.co/t/filter-events-by-source-using-regexp/262918/1 "2021-02-02T01:20:52Z")

</div>

Hello, I'm working on a winlogbeat.yml. I want to filter event by events providers. I am using the REGEXP property so that all the events that would not begin as specified , would just be dropped.  
I'm so new to ELK.  
Here is what i tried basing on the Regexp definition. But I'm not getting anything (zero event) on the output.

```auto

    winlogbeat.event_logs:
       - name: Application
          processors:
            - drop_event.when.not.regexp.winlog.provider_name: "^Configuration.*"
            - drop_event.when.not.regexp.winlog.provider_name: "^Cisco.*"

```

This means that I'm supposed to get all the events beginning by "Configuration" or "Cisco"  
Here is a link to documentation [https://www.elastic.co/guide/en/beats/winlogbeat/master/defining-processors.html](https://www.elastic.co/guide/en/beats/winlogbeat/master/defining-processors.html)  
I wish I could get some help here.  
Thanks

---

<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:** [March 2, 2021, 3:21am UTC](https://discuss.elastic.co/t/filter-events-by-source-using-regexp/262918/2 "2021-03-02T03:21:09Z")

</div>

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