Hi Emar,
Could you please share the agent group config to identify any other issues?
Basically, by default, archive logs are disabled. Let me know if you have enabled it.
Steps to enable:
Edit
/var/ossec/etc/ossec.conf on the Wazuh server and set the
<logall_json> line to yes. This enables logging to
archives.json of all events.
<logall_json>yes</logall_json>Restart the Wazuh manager to make the change effective.
systemctl restart wazuh-managerWarning Keeping <logall_json>yes</logall_json> on can fill up your disk fast! Once you’re done troubleshooting, set it back to no in /var/ossec/etc/ossec.conf and restart the manager: systemctl restart wazuh-manager
According to the Microsoft document, it mentioned that 4688 eventID is from the security channel logs.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4688However, Wazuh ignores eventIDs from the security channel, only these IDs. Other event IDs are forwarded to the manager.
<localfile>
<location>Security</location>
<log_format>eventchannel</log_format>
<query>Event/System[EventID != 5145 and EventID != 5156 and EventID != 5447 and
EventID != 4656 and EventID != 4658 and EventID != 4663 and EventID != 4660 and
EventID != 4670 and EventID != 4690 and EventID != 4703 and EventID != 4907 and
EventID != 5152 and EventID != 5157]</query>
</localfile>
From the default log collection, it should send the 4688 events to the Wazuh manager.
To review further, could you please share the agent.conf file config to understand how you config.
Additionally, please share the ossec.log from one of the agents you have configured to the agent group so I can check any issues in log collection.
Windows 64-bit:
C:\Program Files (x86)\ossec-agent\ossec.logWindows 32-bit:
C:\Program Files\ossec-agent\ossec.log
Let me know the update on this, and I can check further.