Hi
ocerna0721
Hope you are doing well and thank you for using wazuh.
To create decoders first run the log at /var/ossec/bin/wazuh-logtest and verify if is pre-decoded, on the basis of pre decoder you need to create a custom decoder for a specific log. In the log that you provided, the program-name field is pre-decoded as you can see in the image. On the basis of that you can create decoders at /var/ossec/etc/decoders/local_decoder.xml like the following. It defines a decoder named "bind_query" and a child decoder named "bind_query_child." The child decoder extracts information such as the client identifier, IP address, port, domain, and message from a log entry.
<decoder name="bind_query">
<program_name>bind_query</program_name>
</decoder>
<decoder name="bind_querychild">
<parent>bind_query</parent>
<prematch>rpz: info: </prematch>
<regex offset="after_prematch">client (\.+) (\.+)#(\.+) \((\.+)\): (\.+)</regex>
<order>client, ipaddress, port, domain, message</order>
</decoder>
After creating the decoders test them in the wazuh-logtest again and see if you are getting the desired result as shown in the image. If you are satisfied with the result restart the wazuh-manager to apply the changes.

To create decoders you can refer to
https://documentation.wazuh.com/current/user-manual/ruleset/ruleset-xml-syntax/decoders.htmlHope this helps,
Regards.