Loganalyzer Deployment Documentation (Part II)

Source: Internet
Author: User
Tags system log rsyslog

Loganalyzer Deployment Documentation (Part II)

7.2 Configuring the Rsyslog client to send local logs to the server

# vi/etc/rsyslog.conf

* * @192.168.1.107

At the end of the line, the above line is added, that is, the client sends the local log to the server.

7.3 Restart Rsyslog service

#/etc/init.d/rsyslog Restart

7.4 Edit/ETC/BASHRC to write all commands executed by the client to the system log/var/log/messages.

# VI/ETC/BASHRC

Add a line at the end of a file

Export prompt_command= ' {msg=$ (History 1 | {read x y; echo $y;}); Logger "[euid=$ (WhoAmI)]": $ (Who am I): [' pwd '] "$msg"; }‘

Set it in effect

# SOURCE/ETC/BASHRC

The client configuration is complete.

    1. Test if Rsyslog server can properly accept client-side logs

Client Side testing:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKiom1bAW0DxVbQyAABevOovhOw909.jpg "/>

Server-Side detection:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKioL1bAW6CzjiH4AACrwrFD3rA989.jpg "/>

Note that the reception is normal, including some logs that you can restart the machine to see.

    1. Installing Loganalyzer

# wgethttp://download.adiscon.com/loganalyzer/loganalyzer-3.6.5.tar.gz

# tar zxf loganalyzer-3.6.5.tar.gz

# CD loganalyzer-3.6.5

# mkdir-p/var/www/html/loganalyzer

# rsync-a src/*/var/www/html/loganalyzer/

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/DC/wKiom1bAW0GQXRkzAADQ0M5rEj4368.jpg "/>

    1. Installing Loganalyzer in the Browser Installation Wizard
10.1 Open Browser access:http://192.168.1.107/loganalyzer/

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/DC/wKioL1bAW6HDoI7OAACTFxLmZIo544.jpg "/>

Tip There is no configuration file, click here to use the wizard to generate.

10.2 First step, test the system environment

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DC/wKiom1bAW0GTKXI_AAEWKlBKwQs403.jpg "/>

Click "Next" to enter the second step.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DC/wKioL1bAW6OiDgbFAAFBcvtQHj0756.jpg "/>

Tip error: The config.php file is missing and the permissions are set to 666, which can be generated using the configure.sh script under the contrib directory.

View configure.sh File contents

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/DC/wKiom1bAW0PDrtPtAAB2p2OCClM027.jpg "/>

You need to create a config.php file under/var/www/html/loganalyzer/and set its permissions to 666.

# touch/var/www/html/loganalyzer/config.php

# chmod 666/var/www/html/loganalyzer/config.php

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DC/wKioL1bAW6TBx7OcAABjrkhNrpY329.jpg "/>

After doing the above operation, perform recheck operation, config.php file can be written, click Next to enter next step.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKiom1bAW0aRVxy4AAEoeCWOYAk641.jpg "/>

10.3 Third Step, basic configuration

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DC/wKiom1bAW0jRCaylAAGiVnN-lX8011.jpg "/>

In the user Database Options, fill in the parameters set above and click Next.

10.4 Fourth Step, create a table

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKioL1bAW6mCMkYlAAFKJG00zWc168.jpg "/>

Click Next to start creating the table.

10.5 Fifth Step, check SQL results

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/DC/wKiom1bAW0vSoZnCAAEfHeEOqGE002.jpg "/>

10.6 Sixth step to create an administrative user

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKioL1bAW6zwTzhEAAFJZFh5Buw408.jpg "/>

10.7 Seventh Step, create the first system log source.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7A/DC/wKioL1bAW66SmcitAAGghlIPJiM813.jpg "/>

10.8 Eighth step, complete

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7A/DC/wKiom1bAW1CCpGcGAAEFMV_uGvU017.jpg "/>

    1. Test

Loganalyzer Home

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DD/wKiom1bAW1KzyXXDAAGxim7ZM_0503.jpg "/>

    1. Software Bug Resolution method

11. 1 You cannot log on with the created user after installation is complete, you need to connect to the database creation user (bug)

INSERT into ' logcon_users ' VALUES (' 1 ', ' admin ', ' f2b4658c684c4fc62a7c09d66d9cf65f ', ' 1 ', ' 0 ', ' 1439177318 '); Password wld2014

11.2 Installation Database If there is a problem when the nondefault port is initialized via the web, you need to manually add the port to the configuration file

vi/var/www/html/loganalyzer/config.php

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.