Hi Thomas
Thanks for using our community!
On windows Agent´s ossec.conf (or agent.conf if centralized configuration is being used) you can avoid an entire event from being detected but you won´t be able to filter there through an specific user triggering that event, you would be silencing all 4624 events altogether.
You will need to implement a rule like the following to silence the alerts triggered by that user, remember $ its a special character so it needs to be escaped with \
<rule id="100145" level="0">
<if_sid>60106</if_sid>
<field name="win.eventdata.targetUserName">Exchange2019\$</field>
<description>Silence Alert </description>
</rule>
To avoid the Event altogether on your ossec.conf (or shared agent.conf) edit the localfile for eventchannel and add the EventID != 4624 It will look like this:
<localfile>
<location>Security</location>
<log_format>eventchannel</log_format>
<query>Event/System[EventID != 5145 and EventID != 5156 and EventID != 5447 and
EventID != 4624
EventID != 4656 and EventID != 4658 and EventID != 4660 and
EventID != 4670 and EventID != 4690 and EventID != 4703 and EventID != 4907 and
EventID != 5152 and EventID != 5157]</query>
</localfile>
Reference:
Regards!