http://www.unixmen.com/install-and-configure-rsyslog-in-centos-6-4-rhel-6-4/
https://www.howtoforge.com/centralized-rsyslog-server-monitoring
http://tecadmin.net/setup-loganalyzer-with-rsyslog-and-mysql/
http://tecadmin.net/setup-rsyslog-with-mysql-and-loganalyzer/
Configure clients:
=================
vim /etc/rsyslog.conf
Uncomment it, looks like below options:
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
# ### 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 /rsyslog/work # where to place spool files
$ActionQueueFileName srvrfwd # 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 ###
*.* @192.168.100.118:514
:wq
# service rsyslog restart
# netstat -tlupn |grep -i rsyslog
No comments:
Post a Comment