2025-12-10 08:56:04.376 WAT [16710] postgres@postgres ::1(40274) [inconnu] FATAL: authentification par mot de passe échouée pour l'utilisateur « postgres » 2025-12-10 08:56:04.376 WAT [16710] postgres@postgres ::1(40274) [inconnu] DÉTAIL: L'utilisateur « postgres » n'a pas de mot de passe affecté. La connexion correspond à la ligne 89 du pg_hba.conf : « host all all ::1/128 scram-sha-256 »
Hossam El Amraoui
unread,
Dec 15, 2025, 9:16:59 AM (2 days ago) Dec 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
In your particular case, the regex syntax was correct, but in PCRE2 format, that was not indicated. Also, I added `DÉTAIL` to the base decoder. The final decoder looks like this: ``` <decoder name="postgresql-base"> <prematch type="pcre2">^\d{4}-\d{2}-\d{2}.*FATAL|DÉTAIL:</prematch>
<prematch type="pcre2">DÉTAIL:.*L'utilisateur</prematch> <regex type="pcre2">DÉTAIL:.*L'utilisateur.*?([\w]+)</regex> <order>user</order> </decoder> ``` `wazuh-logtest` output: ``` root@ubuntu22:/home/vagrant# /var/ossec/bin/wazuh-logtest Starting wazuh-logtest v4.14.1 Type one log per line
2025-12-10 08:56:04.376 WAT [16710] postgres@postgres ::1(40274) [inconnu] DÉTAIL: L'utilisateur « postgres » n'a pas de mot de passe affecté.
**Phase 1: Completed pre-decoding. full event: '2025-12-10 08:56:04.376 WAT [16710] postgres@postgres ::1(40274) [inconnu] DÉTAIL: L'utilisateur « postgres » n'a pas de mot de passe affecté.'