RSYSLOG不logging数据(UDP 514),但是,只有当数据从远程机器发送时?

在我的rsyslog.conf中,我正在过滤消息,就好像消息包含ManagerName日志到/nco_data/rsyslog/nco_messages.log。 当我用户logging器,它工作正常。 但是,如果我从远程计算机发送数据,rsyslog不会将数据logging到相应的日志文件。

我也重新启动rsyslog,但是没有运气。 系统 – [redhat-release-server-6Server-6.5.0.1.el6.x86_64]

以下是我的/etc/rsyslog.conf文件

# rsyslog v5 configuration file # For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html # If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html #### MODULES #### $ModLoad imuxsock # provides support for local system logging (eg via logger command) $ModLoad imklog # provides kernel logging support (previously done by rklogd) #$ModLoad immark # provides --MARK-- message capability # Provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # Provides TCP syslog reception #$ModLoad imtcp #$InputTCPServerRun 514 #### GLOBAL DIRECTIVES #### # Use default timestamp format $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # File syncing capability is disabled by default. This feature is usually not required, # not useful and an extreme performance hit #$ActionFileEnableSync on # Include all config files in /etc/rsyslog.d/ $IncludeConfig /etc/rsyslog.d/*.conf #### RULES #### ##rsyslog - Netcool conf # Log all remote messages to single file for Netcool syslog probe # then stop processing rules if $msg contains 'ManagerName' then /nco_data/rsyslog/nco_messages.log & ~ # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none /var/log/messages # The authpriv file has restricted access. authpriv.* /var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog # Log cron stuff cron.* /var/log/cron # Everybody gets emergency messages *.emerg * # Save news errors of level crit and higher in a special file. uucp,news.crit /var/log/spooler # Save boot messages also to boot.log local7.* /var/log/boot.log