The Squid log analyzer

SquidAnalyzer

 

Configuration

Here follow the configuration directives used by SquidAnalyzer into the configuation file squidanalyzer.conf.

Output output_directory

Where SquidAnalyzer should dump all HTML, data and images files. You should give a path that can be read by a Web browser.

LogFile squid_access_log_file

Set the path to the Squid log file.

NetworkAlias network-aliases_file

Set path to the file containing network alias name. Network are show as Ip addresses so if you want to display name instead create a file with this format:

    LOCATION_NAME IP_NETWORK_ADDRESS

Separator must be a tabulation.

You can use regex to match and group some network addresses. See network-aliases file for examples.

UserAlias user-aliases_file

Set path to the file containing user alias name. If you don't have auth_proxy enable users are seen as ip addresses. So if you want to show username or computer name instead, create a file with this format:

    FULL_USERNAME IP_ADDRESS

If you have auth_proxy enable but want to replace login name by full user name, create a file with this format:

    FULL_USERNAME LOGIN_NAME

Separator for both must be a tabulation.

You can use regex to match and group some user login or ip addresses. See user-aliases file for examples.

AnonymizeLogin 0|1

Set this to 1 if you want to anonymize all user login. The username will be replaced by an unique id that change at each squid-analyzer run. Default disable.

OrderNetwork bytes|hits|duration

OrderUser bytes|hits|duration

OrderUrl bytes|hits|duration

Used to set how SquidAnalyzer sort Network, User and Url report screen. Value can be: bytes, hits or duration. Default is bytes.

OrderMime bytes|hits

Used to set how SquidAnalyzer sort Mime types report screen Value can be: bytes or hits. Default is bytes.

UrlReport 0|1

Should SquidAnalyzer display user details. This will show all URL read by user. Take care to have enougth space disk for large user. Default is 0, no url detail report.

QuietMode 0|1

Run in quiet mode for batch processing or print debug information. Default is 0, verbose mode.

CostPrice price/Mb

Used to set a cost of the bandwith per Mb. If you want to generate invoice per Mb for bandwith traffic this can help you. Value 0 mean no cost, this is the default value, the "Cost" column is not displayed.

Currency currency_abreviation

Used to set the currency of the bandwith cost. Preferably the html special character. Default is €

TopNumber number

Used to set the number of top url and second level domain to show. Default is top 10.

Exclude exclusion_file

Used to set client ip addresses, network addresses and/or auth login name to exclude from report. Format of the file is a login or an ip address by line.

Lang language_file

Used to set the translation file to be used. Value must be set to a file containing all string translated. See the lang directory for translation files. Default is defined internally in English.

HeaderFile custom_header_file

Custom header. Must be a path to a text file containing HTML code that will be placed just after the body tag and just before the program name and version. Default is defined internally if this directive is not set to a valid file.

FooterFile custom_footer_file

Custom Footer. Must be a path to a text file containing HTML code that will be placed at the bottom of each page just before the end if the body tag. Default is defined internally if this directive is not set to a valid file.

Help support
SquidAnalyzer!

 

Copyright (c) 2001-2012 Gilles Darold - All rights reserved. (GPL v3).