This looks like a case where the syslog receiver is escaping non-printable bytes (control characters, NULs, etc.) into #DDD numeric escape sequences. You can disable this escaping to see the original bytes/text.
To achieve this, I recommend you set up a test environment (using a Wazuh agent) endpoint, configure rSyslog, and perform the debugging there.
Next, we can be sure of the format used to send the raw bytes. You can achieve this using tcpdump, in your test environment:
sudo tcpdump -i any -nn -s0 -w cisco_syslog.pcap udp port 514
Then open
cisco_syslog.pcap in Wireshark and check:
- Packet bytes
- Encoding
- Whether this is actually text syslog
This is the definitive way to know what format the switch is sending. Once we know what format is sent, then we can do the format conversion before the logs are sent from the Wazuh agent to the Wazuh server.