TomonoriSoejima / Tejun

notes related to working cases
5 stars 3 forks source link

how to test syslog #75

Open TomonoriSoejima opened 2 years ago

TomonoriSoejima commented 2 years ago
  1. enable the followings in /etc/rsyslog.conf
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
  1. sudo service rsyslog restart

  2. echo hello syslog | nc -v -u localhost 514

  3. grep "hello syslog" /var/log/messages

sudo service rsyslog restart
echo hello syslog | nc -v -u localhost 514
grep "hello syslog" /var/log/messages