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.
- 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.
- 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 "/>
- 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 "/>
- Test
Loganalyzer Home
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7A/DD/wKiom1bAW1KzyXXDAAGxim7ZM_0503.jpg "/>
- 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