# EQL Query for User account creation and deletion

**URL:** <https://discuss.elastic.co/t/eql-query-for-user-account-creation-and-deletion/291200>\
**Category:** Elasticsearch\
**Tags:** eql-elastic-query-language\
**Created:** [December 8, 2021, 9:35am UTC](https://discuss.elastic.co/t/eql-query-for-user-account-creation-and-deletion/291200 "2021-12-08T09:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaghadeoreofficial](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@anaghadeoreofficial](https://discuss.elastic.co/u/anaghadeoreofficial)\
**Post date:** [December 8, 2021, 9:35am UTC](https://discuss.elastic.co/t/eql-query-for-user-account-creation-and-deletion/291200/1 "2021-12-08T09:35:40Z")

</div>

I am currently working on one use case for winlogbeat data. Usecase is as follows:

Use Case: Trigger alert if the user account is deleted within one hour after creation.

Trying to understand the EQL syntax for the above use case. Using winlog event id: 4720 and 4726 for account creation and deletion.

Help me to fine-tune the above 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:** [January 5, 2022, 9:35am UTC](https://discuss.elastic.co/t/eql-query-for-user-account-creation-and-deletion/291200/2 "2022-01-05T09:35:58Z")

</div>

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