Hello badr afilal,
There is a tool in Wazuh to check if custom decoders are well-defined. The tool is
https://documentation.wazuh.com/current/user-manual/reference/tools/wazuh-logtest.html.
Regular expressions follow a certain syntax, in the documentation we have more information about their syntax:
https://documentation.wazuh.com/current/user-manual/ruleset/ruleset-xml-syntax/regex.html.
In your particular case, the decoder would be as follows:
<decoder name="zeus">
<prematch>^[\d\d/\w\w\w/\d\d\d\d:\d\d:\d\d:\d\d \S+] </prematch>
<regex offset="after_prematch">(\S+)\s-\s(\S+)\s-\s\S+\s\S+\s\S+\s(\S+)\s:\s(\S+)\s(\S+)\s\S+\s(\S+)\s\S+\s\S+\s\S+\s\S+\s\S+\s\S+\s(\.+)</regex>
<order>srcip, host, upstream_ip, method, endpoint, response_code, user_agent</order>
</decoder>
If you need further assistance, feel free to ask. Best regards.