Hello,
Running v4.9.0 on Ubuntu 22.0, tried adding a custom decoder via the GUI. When trying to save it throws the error shown below. If create the decoder on the server in `/var/ossec/etc/decoders/` then restart `wazuh-manager.service` it won't start. After removing the decoder it will start again. If I try editing an existing decoders we have the same problem.
GUI:
Error when restarting the service from the server:
Oct 11 14:22:16 w3274z8u systemd[1]: Starting Wazuh manager...
Oct 11 14:22:17 w3274z8u env[26990]: 2024/10/11 14:22:17 wazuh-analysisd: ERROR: (2107): Decoder configuration error: 'ftp_ignore_date'.
Oct 11 14:22:17 w3274z8u env[26990]: 2024/10/11 14:22:17 wazuh-analysisd: CRITICAL: (1202): Configuration error at 'etc/decoders/mw.xml'.
Oct 11 14:22:17 w3274z8u env[26962]: wazuh-analysisd: Configuration error. Exiting
Oct 11 14:22:17 w3274z8u systemd[1]: wazuh-manager.service: Control process exited, code=exited, status=1/FAILURE
Oct 11 14:22:17 w3274z8u systemd[1]: wazuh-manager.service: Failed with result 'exit-code'.
Oct 11 14:22:17 w3274z8u systemd[1]: Failed to start Wazuh manager.
Custom decoder I'm trying to create that monitors syslog for logs that start with FTP after the date/time entry that are being shipped to the syslog server:
<decoder name="ftp_ignore_date">
<parent>syslog</parent>
<regex>.*\bFTP\b.*</regex>
<prematch>FTP</prematch>
<program_name>FTP</program_name>
</decoder>
The server is processing syslog data from other systems fine.
Thanks,
Matt