问题描述
我正在设置 BusyBox 系统日志以将消息发送到远程系统日志服务器。
我更改系统日志配置文件 /etc/syslog-startup.conf
如下所示:
DESTINATION=remote # log destinations (buffer file remote)
#LOGFILE=/var/log/messages # where to log (file)
REMOTE=192.168.1.2:514 # where to log (syslog remote)
REDUCE=no # reduce-size logging
DROPDUPLICATES=no # whether to drop duplicate log entries
#ROTATESIZE=0 # rotate log if grown beyond X [kByte]
#ROTATEGENS=3 # keep X generations of rotated logs
BUFFERSIZE=64 # size of circular buffer [kByte]
FOREGROUND=no # run in foreground (don't use!)
#LOGLEVEL=5 # local log level (between 1 and 8)
通过这样的配置,系统成功地将日志消息发送到远程系统日志服务器。 我只想将有关用户登录和注销的消息发送到远程系统日志服务器,并丢弃所有其他类型的日志。 我尝试添加:
authpriv.notice @192.168.1.2:514
但它不起作用。 我认为这应该是可能的,但我真的不知道如何编辑该文件以过滤要发送到服务器的身份验证消息。 谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)