Syslog-ng+syslog collecting Tomcat logs (i)

Source: Internet
Author: User
Tags rsyslog

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.