Hi Maxim, sorry for the late follow-up here.
The wazuh-ruleset repository is not updated, please do not use it as a Ruleset source, but as a reference of old rules.
About your scenario.
Before creating an if-sid rule we have to understand where the logs/alerts are being fired. an If-sid rule tries to improve or enrich a current alert. So when we know the sid of the current alert we can create a child rule with the if-sid parameter to improve the output.
So, we need to understand where the missing alerts are.
Are you able to find your missing events/alerts in the dashboard anywhere? try to apply filters that will search for event/alert content, not just sysmon event id number.
If not. we need to try to find where the alert is missed.
1.- Ensure there is an alert generated for that log.
a.- look for the missing alert in /var/ossec/logs/alerts/alerts.json
b.- if you can see it there, then check filebeat logs (/var/log/filebeat/filebeat) maybe there is some errors there.
2.- If there is no info in the alerts.json, please find it in /var/ossec/logs/archives/archives.json (how to enable archiving - Set <logall_json>yes</logall_json> in /var/ossec/etc/ossec.conf and restart wazuh-manager)
This should help us to understand where the missing logs/events/alerts are stopped.
Hope this helps.