Hello Riccardo,
I see all you have done with the ingestion and the rule you have created. It seems from the logtest, the rule and decoder were triggered, but in the actual event stream, nothing happened.
We can start by checking the Wazuh archive file to ensure the logs are ingested exactly as you used while testing; otherwise, your decoder might not match, affecting the rules.
You can enable the archive log by editing the /var/ossec/etc/ossec.conf file.
<ossec_config>
<global>
<logall>yes</logall>
<logall_json>yes</logall_json>
</global>
</ossec_config>
Then restart the Wazuh-manager. systemctl restart wazuh-manager
cat /var/ossec/logs/archives/archives.json | grep "Authority changes"
Once you find the logs, please disable the archive by setting the logall options above to no, and please revert with a sample log.
Please let me know what you find.