I have tested your custom decoder using the sample log you shared, and it seems that the hostname cannot be decoded due to the syslog format of the log.
For some syslog-formatted logs, the log headers cannot be decoded, in this case, the hostname is treated as part of the syslog header.
However, you can still decode the program name from the log. To achieve this, I have removed the regex used for decoding the hostname and excluded the corresponding field from the <order> tag.
Updated decoder:
The highlighted yellow section (up to vcentersvt2) is considered the syslog header by Wazuh Manager and cannot be decoded using custom decoders.
The remaining green-highlighted section of the log can be successfully decoded using the custom decoders provided above.
You can refer to the Wazuh decoder syntax documentation for additional details.