Environment:
Log Collection server: syslog-ng_v3.3.7
Tomcat client: Syslog + Tomcat
Interference:
1. Shut down the firewall and selinux for ease of debugging.
#service iptables Stop//stop firewall #chkconfig iptables off//boot does not start #service iptables status//view firewall status
The firewall has stopped running.
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/7F/27/wKioL1cVjtDhtxNSAAAU1tTy_lQ917.jpg "title=" 1.jpg " alt= "Wkiol1cvjtdhtxnsaaau1tty_lq917.jpg"/>
2. Change selinux=enforcing to selinux=disabled
#vi/etc/selinux/config#setenforce 0//temporarily off #/usr/sbin/sestatus-v//view seliux status
It's closed.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7F/29/wKiom1cVkCvg45odAAAVEYn1HO8163.jpg "title=" Syslog-ng+syslog collection Tomcat Day -2.jpg "alt=" Wkiom1cvkcvg45odaaaveyn1ho8163.jpg "/>
3. The system is installed by default Rsyslog will have 514 port conflict, uninstall or deactivate, this is deactivated.
# chkconfig Rsyslog off//Disable Boot # service Rsyslog stop//Stop Rsyslog
Install Syslog-ng:
Method one: Directly with Yum
#yum install-y Syslog-ng
The global configuration is in/etc/syslog-ng/syslog-ng.conf.
It is not recommended for beginners to install with method one because you do not understand the process.
Method Two: Manual Installation
Reference article:
http://http://bguncle.blog.51cto.com/3184079/957315/
This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1765271
Syslog-ng+syslog collecting Tomcat logs (i)