Shammer's Philosophy

My private adversaria

send syslog message via netcat on Debian 9.5

I want to write a syslog client libraries in common lisp. It is sufficient just to be able to send a message on udp


At first, open udp port 514 by editing /etc/rsyslog.conf. I just updated following 2 lines.

input(type="imudp" port="514")

Next, restart rsyslog.

$ sudo systemctl stop rsyslog.service
$ sudo systemctl start rsyslog.service

 At last, send syslog message via netcat.

$ nc -u localhost 514
2019/04/16 21:35:00 This is a message from nc