Trying to exclude accounts with $

Hello GL friends!!

So here’s a hopefully simple query question.

I have a windows event, 4624 to be specific tracking successful windows logons. In my search I am trying to exclude the computer accounts that show up as $ names so that all I get are the actual users that logged in.

Here’s the search I’m using:

EventID:4624 AND LogonType:3 AND NOT (WorkstationName:-) AND NOT (TargetUserName:HealthMailbox* OR TargetUserName:“ANONYMOUS LOGON”)

And I get these accounts as a sample result:

image

I’m trying to exclude the accounts with a $ at the end. How can I do that in my search?

Thanks

TP

I am pretty new at regex but this worked for me:

NOT winlogbeat_event_data_TargetUserName:/.*$/

That worked!! Thanks

TP

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