Rsyslog (v) Implement Lamp,web interface Management log

Source: Internet
Author: User
Tags rsyslog

The previous section describes how to store logs in a database, you might think this is not superfluous, not also, since can be placed in the database is not able to implement lamp combination to build a web interface to manage the log, there is just a software to help us achieve this function "Loganalyzer "。 This feature is implemented below.

The first is to implement the log storage to the database, reference:
   http://blog.51cto.com/13598893/2072463
On the Rsyslog server, install these packages.
yum install httpd php php-mysql php-gd 其中:  httpd,这个就不用多解释了,就是提供web页面的程序了        php包是让httpd程序支持动态页面        php-mysql就是让php程序具有连接数据库的功能了        php-gb 就是提供图行界面的相关程序了
Download the loganalyzer,php program compression package
    http://loganalyzer.adiscon.com/    
Install the Loganalyzer program to extract the Loganalyzer compression package to any temporary directory
    mkdir dir    cd dir    tar vxf  
Copy the main program to the/var/www/html directory
cp -a loganalyzer-4.1.5/src/*  
Create a config.php file and modify file permissions
cd /var/www/htmltouch config.phpchmod 666 config.php
Use the browser to access the Loganalyzer program, the Rsyslog server for final configuration

Interface One:

Interface Two:

Interface Three:

The following is the beginning of the formal configuration according to the needs of their own debugging, in order to see more clearly I translated the next



Configuration is complete, this is the final interface, yes

Finally, for security reasons, it's best to reclaim config.php file permissions
chmod 644 config.php

Rsyslog (v) Implement Lamp,web interface Management log

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.