Hi Wazuh team, hope you're doing well
I'm running into some issues with specific logs which should be monitored by one of my Wazuh agent.
The log format is as follows :
[2025-12-10 16:04:40] [MAIL AUTOMATIQUE] Transfert APP vers DB - Résultat du transfert de données
Succès : Le transfert des données pour la table APPRECORDS_TASK a été effectué avec succès.
Succès : Le transfert des données pour la table APPRECORDS_SERVICE a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_AGENT_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_GROUP_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_SERVICE_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_SERVICEMAIL_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_AGENTBYSERVICE_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_AGENTBYSERVICEMAIL_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_QUALIFBYSERVICE_D a été effectué avec succès.
Succès : Le transfert des données pour la table APPSTAT_QUALIFBYAGENTBYSERVICE_D a été effectué avec succès.
Durée totale de traitement : 00:00:01
----------------------------------------
Those events are related to one operation and should be treated as one log. In order to achieve that, I added the following configuration on the manager, into the agent.conf of the group which the host is part of :
<agent_config name="^SERVER-HOST1$">
<localfile>
<location>C:\transfert_test.log</location>
<log_format>multi-line-regex</log_format>
<multiline_regex replace="wspace" match="end">^Dur.. totale de traitement : \d{2}:\d{2}:\d{2}</multiline_regex>
</localfile>
</agent_config>
At this point, the following things are working :
- The agent monitors the file
- When events are written in the log file, the Wazuh manager receives the event
However, my main issue is that the manager only receives the first character of the log. Here is a portion of the archives.log file when the event is received by the manager :
2025 Dec 11 15:43:01 (
SERVER-HOST1 ) any->C:\
transfert_test.log [
I tried playing around with the regex and the type of multiline_regex used (end, start), but it just doesn't work.
Would you have any idea how I can solve this issue ?
Best regards,
Tristan