Hi Rali,
My apologies for the confusion. All Windows events are automatically decoded by event_channel, so it will not be necessary to write a customized one. The rule for all the events that are decoded using event_channel is 60000. Then, there is a child rule with the field specifying that specifies the system channel, which in your case is Security. The rule ID for this rule is 60002, and, as Caio said before you can use this ID as a parent for your new rule, which will be something like this:
<rule id="100014" level="7">
<field name="win.system.eventID">^4698$</field>
<description>A scheduled task has been created on this machine</description>
</rule>
Also, Windows rules cannot be tested using ossec-logtest nor wazuh-logtest. Once again, my apologies for the misunderstanding.
Let me know if that worked!
Regards,
Yana.