# Filtering by Event source

**URL:** <https://discuss.elastic.co/t/filtering-by-event-source/125073>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [March 21, 2018, 8:15pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073 "2018-03-21T20:15:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticprof](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@elasticprof](https://discuss.elastic.co/u/elasticprof)\
**Post date:** [March 21, 2018, 8:15pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/1 "2018-03-21T20:15:36Z")

</div>

Hi

How can i filter by EventSource, the events are sent from one of our custom applications and i wanted to log only those messages but not all messages for "Application"

for example i want to send the messages only from "Outlook" which is one the "Source" from the below screenshot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/5/6525cc9fce4354a85ecd7c49bff599560c57a43f.png)

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 22, 2018, 11:47am UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/2 "2018-03-22T11:47:19Z")

</div>

> [@elasticprof](#):
>
> How can i filter by EventSource

With the [`provider` config option](https://www.elastic.co/guide/en/beats/winlogbeat/current/configuration-winlogbeat-options.html#_literal_event_logs_provider_literal).

```auto
winlogbeat.event_logs:
  - name: Application
    provider:
      - Outlook

```

---

<div class="post-metadata">

**Author:** ![elasticprof](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@elasticprof](https://discuss.elastic.co/u/elasticprof)\
**Post date:** [March 22, 2018, 4:02pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/3 "2018-03-22T16:02:53Z")

</div>

Thank you Andrew

Does it need any prior configuration settings, the service is starting successfully but i am not seeing any logs pushed

i am using it as shown below, as i mentioned earlier i am using provider name defined from one of our custom applicaiton

```
winlogbeat.event_logs:
  - name: Application
    ignore_older: 72h
    provider:
      - CustomProvider
```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 22, 2018, 4:42pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/4 "2018-03-22T16:42:06Z")

</div>

> [@elasticprof](#):
>
> Does it need any prior configuration settings

What you are showing is correct. Could it be that Winlogbeat has already sent all those records? If you remove the `C:\ProgramData\winlogbeat\.winlogbeat.yml` file it will resend all those from the last 72h.

Another debugging option is to run Winlogbeat with debug on.

```auto
logging.level: debug
logging.selectors: [eventlog]

```

Then take the XML query from the line that says "using subscription query=" and try it in the Windows Event Viewer as a custom view ([Advanced XML filtering in the Windows Event Viewer | Microsoft Learn](https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/)).

---

<div class="post-metadata">

**Author:** ![elasticprof](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@elasticprof](https://discuss.elastic.co/u/elasticprof)\
**Post date:** [March 22, 2018, 6:01pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/5 "2018-03-22T18:01:51Z")

</div>

Thank you it worked

---

<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:** [April 19, 2018, 6:02pm UTC](https://discuss.elastic.co/t/filtering-by-event-source/125073/6 "2018-04-19T18:02:00Z")

</div>

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