Hi Marcelo, thank you for your help
I only have problem with NextCloud alerts. Other alerts is showing up in my dashboard.
NextCloud generates two log files:
nextcloud.log --> errors or operation fails
audit.log --> Activity such as user logins and file activities
In my case, the alerts from file "nextcloud.log" (when login failed) are generated in alerts.log of Wazuh server and are displayed on my dashboard.
The alerts from file "audit.log" (when login successful) are generated in alerts.log of Wazuh server but are not displayed on my dashboard.
Nextcloud rules : <group name="json,nextcloud,">
<rule id="88200" level="0">
<decoded_as>json</decoded_as>
<field name="@source">NextCloud</field>
<options>no_full_log</options>
<description>NextCloud messages grouped.</description>
</rule>
<rule id="88201" level="0">
<decoded_as>nextcloud</decoded_as>
<options>no_full_log</options>
<description>NextCloud messages grouped.</description>
</rule>
<rule id="88212" level="6">
<if_sid>88200,88201</if_sid>
<match>Login failed: </match>
<options>no_full_log</options>
<description>NextCloud authentication failed.</description>
<group>authentication_failed,gdpr_IV_32.2,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AC.7,nist_800_53_AU.14,pci_dss_10.2.4,pci_dss_10.2.5,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
<rule id="88211" level="3">
<if_sid>88200,88201</if_sid>
<match>Login successful: </match>
<options>no_full_log</options>
<description>NextCloud authentication successful.</description>
<group>authentication_success,gdpr_IV_32.2,gdpr_IV_35.7.d,hipaa_164.312.b,nist_800_53_AC.7,nist_800_53_AU.14,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
</group>
JSON decoders :<decoder name="json">
<prematch>^{\s*"</prematch>
<plugin_decoder>JSON_Decoder</plugin_decoder>
</decoder>
NextCloud decoders : <decoder name="nextcloud">
<program_name>^NextCloud</program_name>
</decoder>
<decoder name="nextcloud-failed1">
<parent>nextcloud</parent>
<prematch>Login failed: user </prematch>
<regex offset="after_prematch">^'(\w+)' , wrong password, IP:(\d+.\d+.\d+.\d+)</regex>
<order>user, srcip</order>
</decoder>
<decoder name="nextcloud-failed2">
<parent>nextcloud</parent>
<prematch>Login failed: </prematch>
<regex offset="after_prematch">^'(\w+)' \(Remote IP: '(\d+.\d+.\d+.\d+)</regex>
<order>user, srcip</order>
</decoder>
<decoder name="nextcloud-malicious">
<parent>nextcloud</parent>
<prematch>Passed filename is not valid, might be malicious </prematch>
<regex offset="after_prematch">;ip:"(\d+.\d+.\d+.\d+)|;ip:\\"(\d+.\d+.\d+.\d+)</regex>
<order>srcip</order>
</decoder>