【发布时间】:2015-06-16 18:41:07
【问题描述】:
我在运行 Red Hat 6 的服务器上使用统一日志,接收来自其他服务器的定向日志消息并使用 RSyslog 管理它们。到现在为止,/etc/rsyslog.conf都有这条规则:
if $fromhost-ip startswith '172.20.' then /var/log/mylog.log
但我不想记录包含“kernel”和“dnat”的消息,所以我想过滤所有消息,增强规则。
我该怎么做?
【问题讨论】:
标签: linux filter redhat rsyslog