Hello,
It is a good practice to keep track of logon and logoff events because they can serve as indicators when there is an attack.
Having so many logons and logoffs in one second as seen in your log might also be an indicate a problem or may be part of normal activity of an application on your endpoints. Still worth investigating.
However, to stop login these events you should do the following:
- Open the rule file /var/ossec/ruleset/rules/0580-win-security_rules.xml and set the severity levels of rule ID
60106 and
60137 to 0
- Restart the Wazuh manager to apply the changes
An example is below
<rule id="60137" level="0">
<if_sid>60103</if_sid>
<field name="win.system.eventID">^538$|^551$|^4634$|^4647$</field>
<options>no_full_log</options>
<description>Windows User Logoff.</description>
<group>gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AC.7,nist_800_53_AU.14,pci_dss_10.2.5,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>