Hi Jaime,
Your cassandra_audit_decoders.xml file has errors related to unclosed XML elements and comments.
However, It looks like you have multiple syntax errors in the regex in your custom decoder file.
Could you please share a sample full log then I can replicate this issue on my end?If you have already forwarded logs to the Wazuh manager then enable the archives.json log and share me the full log.
To that you can enable archive JSON format log from your manager's ossec.conf
<ossec_config>
<global>
___________________
<logall_json>yes</logall_json>
_______________
After making the changes make sure to restart the manager.
systemctl restart wazuh-manager
Then try to find the relevant log by following this command by replacing part of your log with the log content.
cat /var/ossec/logs/archives/archives.json | grep "part of your log"If you find relevant logs, please share the
full_log field from the archives.json file.
For example, if you receive a log like this:
{"timestamp":"2023-09-05T02:47:40.074+0000","agent":{"id":"001","name":"abc","ip":"10.0.2.29},"manager":{"name":"Server85"},"id":"1693882060.373586","full_log ":"
Sep 5 03:10:19 Server91 dbus-daemon[676]: [system] Successfully activated service 'org.freedesktop.UPower'","predecoder":{"program_name":"dbus-daemon","timestamp":"Sep 5 03:10:19","hostname":"Server91"},"decoder":{},"location":"/var/log/syslog"}
Please share the full_log part:
Sep 5 03:10:19 Server91 dbus-daemon[676]: [system] Successfully activated service 'org.freedesktop.UPower'Note: Don't forget to disable the logall parameter once you have finished troubleshooting.
Leaving it enabled could lead to high disk space consumption.
Ref:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/global.html#logall-jsonRegards,
Hasitha Upekshitha