1.syslogd作客户端
BusyBox v1.20.2 (2022-04-06 16:19:14 CST) multi-call binary.
Usage: syslogd [OPTIONS]
System logging utility
-n Run in foreground
-O FILE Log to FILE (default:/var/log/messages)
-l N Log only messages more urgent than prio N (1-8)
-S Smaller output
-s SIZE Max size (KB) before rotation (default:200KB, 0=off)
-b N N rotated logs to keep (default:1, max=99, 0=purge)
-R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)
-L Log locally and via network (default is network only if -R)
-D Drop duplicates
-C[size_kb] Log to shared mem buffer (use logread to read it)
-f FILE Use FILE as config (default:/etc/syslog.conf)
大概翻译下:
BusyBox v1.20.2 (2022-04-06 16:19:14 CST) multi-call binary.
Usage: syslo

文章介绍了syslogd作为客户端的使用方法,包括配置文件选项、参数传递以及与远程服务器的通信。同时,详细讲解了rsyslog作为服务端的配置,如何接收、存储和区分不同设备的日志。

1220

被折叠的 条评论
为什么被折叠?



