When configuring log forwarding (such as on a vApp environment), logs may fail to appear on the destination syslog server even after following standard setup procedures. To determine if the issue lies with the source machine, the network, or the target server, you can manually generate native syslog messages to test connectivity.
Follow these steps to manually send a test message from your Linux terminal to a remote syslog server.
Access the Source Machine: Log in to the Linux server that should be sending the logs.
Send a UDP Test Message (Port 514): Run the following command, replacing <target_ip> with your syslog server's IP address:
Send a TCP Test Message (Port 514): Run the following command:
Verify on Target Server: Log in to the destination syslog server and check the logs (e.g., /var/log/messages or your SIEM dashboard) to confirm receipt of the "Test message" string.
<14>) at the start of the string. Without this, some Log Decoders will record the event as "Unidentified content" in /var/log/messages rather than processing it correctly.<14> prefix represents a specific facility and level. You can experiment with different numerical values if your environment requires specific filtering.