# Question about searching winlog events

**URL:** <https://discuss.elastic.co/t/question-about-searching-winlog-events/191814>\
**Category:** Elasticsearch\
**Created:** [July 23, 2019, 12:45pm UTC](https://discuss.elastic.co/t/question-about-searching-winlog-events/191814 "2019-07-23T12:45:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnv\_1](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mnv\_1](https://discuss.elastic.co/u/mnv_1)\
**Post date:** [July 23, 2019, 12:45pm UTC](https://discuss.elastic.co/t/question-about-searching-winlog-events/191814/1 "2019-07-23T12:45:07Z")

</div>

Hello!  
I'm using latest winlogbeat with ECS and its shipping security events in Elasticsearch. I've created a local user on Windows machine without password and get error, that password does not compline with local policies.  
In windows event viewer I see three events:

1. event\_id = 4720 - user created.
2. event\_id = 4729 - user was removed from a security-enabled global group.
3. event\_id = 4726 - user deleted.

If i create user correctly I have only one event with id 4720 and its fine.  
How can I filter out "wrong created" users using elasticsearch query?

---

<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:** [August 20, 2019, 12:47pm UTC](https://discuss.elastic.co/t/question-about-searching-winlog-events/191814/2 "2019-08-20T12:47:11Z")

</div>

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