Install squidalyser log analysis software in debianetch4.0

Source: Internet
Author: User
Debianetch4.0 install squidalyser log analysis software-Linux Release Technology-Debian information. The following is a detailed description. 1. First, download Squidalyser 0.2.55 and expand it:
# Tar-zxvf squidalyser-0.2.55.tar.gz

(If DebianLinux is newly installed, Squidparse works normally only after the following software packages are installed. Otherwise, an error is reported. The software package is: libdbi-perl, libdbd-mysql-perl, libgd-graph-perl, and libtime-modules-perl), run the following command to install:

# Apt-get install libdbi-perl
# Apt-get install libdbd-mysql-perl
# Apt-get install libgd-graph-perl
# Apt-get install libtime-modules-perl

2. Because we only use its log collection function, we only copy the Squidparse directory and its content to/usr/local /:
# Cp-r squidalyser-0.2.55/squidparse/usr/local /.

3. Then we need to modify the configuration file squidalyser. conf. The modified content is the setting options for connecting to the database:
# Cd/usr/local/squidparse
# Vi squidalyser. conf
Dbname squid: enter your database name. squid is used by default.
Dbhost 10. x enter the IP address of the MySQL database.
Dbuser squidalyser the user accessing the database
Dbpass password: password used to access the database

4. Finally, we create a crontab entry so that squidparse. pl collects squid logs to the database every early morning and runs:
# Crontab-e
Enter the following content in the Editor:
00 03 ***/usr/local/squidparse. pl

5. Install mysql 3.2.3 and prepare the msyql Database
Mysql-u root-p
Mysql> create database squid;
Mysql> grant all privileges on squid. * to squidalyser @ localhost identified by 'Password ';
Cd/root/squidalyser-0.2.55
Mysql squid-u squidalyser-p
Related Article

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.