CentOS linux 內鍵的 logger 作不到,所以重新編譯 logger

wget https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.32/util-linux-2.32.tar.gz
tar zxvf util-linux-2*
cd util-linux-2*
./configure
make

./logger -d -i -n 1.1.1.1 -P 514 --tag "testtag" "testmessages" -p local7.debug

其實 nc 也可以作得到

echo -n "testmessages" | nc -4u -w1 1.1.1.1 514
Related posts 相關文章
nc 指令檢查 UDP port 是否活著
More...
讓 SNMP 減少記錄於 syslog 裡
More...
Linux web server 被放 backdoor 後門程式
More...
rsyslog + loganalyzer 一些備註
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。