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