[rsyslog-notify] Forum Thread: Re: Rsyslog 5.8.10 - UDP issue - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Fri Feb 20 17:06:31 CET 2015
User: roberthuang
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25269#p25269
Message:
----------
I am having the similar issue with the Nexus 7000 switches, Nexus 5000
switches and ACE 4710 load balancers. I have no problem with other 300
Cisco devices and routers.
I am using Linux version 3.8.13-55.1.5.el6uek.x86_64 (Red Hat 4.4.7-3) and
rsyslogd 5.8.10. The firewall is turned off and selinux is set to
Permissive. I didn't set up any filter. The tcpdump shows the log message
from the Nexus 7000 (172.30.187.202) has been received by the server
syslogvm (172.30.187.78) which in on the same vlan. They can ping each
other so there is no routing issue. However, Rsyslog server won't write the
log messages to the files. I've been struggling for a week and still
couldn't figure out why. Please help. Thank you very much.
Tcpdump output is showing below.
[color=#BF0040:1hgacbri]10:47:58.491346 IP 172.30.187.202.13032 >
syslogvm.syslog: SYSLOG local7.notice, length: 62[/color:1hgacbri]
The entire configuration is pasted below.
[color=#BF0000:1hgacbri][root at syslogvm syslog]# more /etc/rsyslog.conf
# rsyslog v5 configuration file
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see <!-- m --><a class="postlink"
href="http://www.rsyslog.com/doc/troubleshoot.html">http://www.rsyslog.com/doc/troubleshoot.html</a><!--
m -->
#### MODULES ####
$ModLoad imuxsock # provides support for local system logging (e.g. 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 ####
$FileCreateMode 0644
$DirCreateMode 0755
$umask 0000
$template DynaFile,"/syslog/%HOSTNAME%/%HOSTNAME%.log"
$template raw,"%rawmsg%\n"
*.* -?DynaFile;raw
# 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 ####
# 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
# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
#$WorkDirectory /var/lib/rsyslog # where to place spool files
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
#$ActionQueueType LinkedList # run asynchronously
#$ActionResumeRetryCount -1 # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###
[root at syslogvm syslog]# [/color:1hgacbri]
More information about the rsyslog-notify
mailing list