Skip to content

Send syslog message with netcat nc

Note

<150> represents facility and severity following RC3164 Syslog header use the current timestamp and a random hostname

  1. echo “<150>`env LANG=us_US.UTF-8 date “+%b %d %H:%M:%S“` host`date +%s` service: my special message goes here” | nc 192.168.0.1 -u 514w 1