# Dropping logon events for computer accounts not working

**URL:** <https://discuss.elastic.co/t/dropping-logon-events-for-computer-accounts-not-working/190061>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [July 11, 2019, 3:42pm UTC](https://discuss.elastic.co/t/dropping-logon-events-for-computer-accounts-not-working/190061 "2019-07-11T15:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anabella\_Cristaldi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anabella_cristaldi/32/23612_2.png) [@Anabella\_Cristaldi](https://discuss.elastic.co/u/Anabella_Cristaldi)\
**Post date:** [July 11, 2019, 3:42pm UTC](https://discuss.elastic.co/t/dropping-logon-events-for-computer-accounts-not-working/190061/1 "2019-07-11T15:42:03Z")

</div>

Hi,  
I'm working at the moment correlating windows Logon and Special Logon events (4624 and 4672) .  
I want to drop the events 4624 event when `event_data.TargetUserName` ends with $ because is a computer-related account joining the domain.  
What I have done so far is not working and I'm still receiving those events.

1. First I 've put the drop\_event processor before the script processor, so the field I'm looking at is event\_data.TargetUserName, not user.name  
Is this correct?

2. I've tried with the regexp condition, and no luck

also I've tried with an specific user, still no work (instead of the regexp line)

```
         - contains:
              event_data.TargetUserName: "DC_TEST2K12$"

```

What I'm doing wrong?  
Thank you very much  
Regards  
Ana

---

<div class="post-metadata">

**Author:** ![Anabella\_Cristaldi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anabella_cristaldi/32/23612_2.png) [@Anabella\_Cristaldi](https://discuss.elastic.co/u/Anabella_Cristaldi)\
**Post date:** [July 11, 2019, 4:08pm UTC](https://discuss.elastic.co/t/dropping-logon-events-for-computer-accounts-not-working/190061/2 "2019-07-11T16:08:44Z")

</div>

Apparently is working now. I was using the wrong field name is winlog.event\_data.TargetUserName instead of event\_data.TargetUserName

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2d9f0dbe2c52871fb7e176f6789e9f781fa2130b.png)

Regards  
Ana

---

<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 8, 2019, 4:09pm UTC](https://discuss.elastic.co/t/dropping-logon-events-for-computer-accounts-not-working/190061/3 "2019-08-08T16:09:00Z")

</div>

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