Once syslog server is up, you can send a message to your syslog server to test if it’s working. Just a simple command and you’ll send a message to syslog server. Just keep an eye at the log and u’ll see the message 🙂
To send message to syslog server, follow the steps below:-
- Start your terminal
- Run the command below to send a UDP message to your syslog server
nc -w0 -u 192.168.0.1 514 <<< "testing again from my home machine"
* replace the ip 192.168.0.1 to your syslog server IP
Explanation: -w0 set timeout to zero second, -u is to use UDP protocol, 514 represent port 514
- Now check your log at the syslog server, you should see the message you just send. Happy logging!