Sqmgrlog generate reports per user/ip/name from SQUID log file.
The reports will be generated in HTML or email.

Special thanks to:
Matteo Colombo <matteo@calcol.it> 		- Italian language
Palamarchuk Eugen <eugen@cit.od.ukrtel.net> 	- Russian language
Csaba Kabai <ckabai@icnpharm.com>		- Hungarian language
Evren Yurtesen <yurtesen@ispro.net.tr>          - Turkish language
Andreas Piek <a.piesk@gmx.net>			- German language

Translating
   . Copy English.h to YourLanguage.h
   . Translate YourLanguage.h
   . Send YourLanguage.h to orso@ineparnet.com.br


If you use native squid log format, the spent time will be in reports (emulate_httpd_log off).

1. run ./configure

   configure options: --enable-language=English, German, Hungarian, Italian, Portuguese, Russian, Turkish
                                default: English

                      --enable-prefix=where the instalation dir is
                                default: /usr/local/bin

                      --enable-squid_dir=where the Squid root dir is
                                default: /usr/local/squid

                      --without-gcc to use cc
                                default: gcc

3. make

4. make install

5. Go to /usr/local/etc/sqmgrlog (or file entered with --prefix on configure)
   and change sqmgrlog.conf as you need.

# sqmgrlog.conf
#

# TAG:  access_log
#       Where is the access.log file
#       sqmgrlog -l file
#
#access_log /usr/local/squid/logs/access.log

# TAG:  title
#       Especify the title for html page.
#
#title "Squid User's Access Report"

# TAG:  font_face
#       Especify the font for html page.
#
#font_face Arial

# TAG:  header_color
#       Especify the header color
#
#header_color brown

# TAG:  header_bgcolor
#       Especify the header bgcolor
#
#header_bgcolor blanchedalmond

# TAG:  font_size
# TAG:  font_size
#       Especify the font size
#
#header_font_size -1

# TAG:  background_color
# TAG:  background_color
#       Html page background color
#
#background_color white

# TAG:  text_color
#       Html page text color
#
#text_color black

# TAG:  text_bgcolor
#       Html page text background color
#
#text_bgcolor beige

# TAG:  title_color
#       Html page title color
#
#title_color green

# TAG:  logo_image
#       Html page logo.
#
#logo_image none

# TAG:  logo_text
#       Html page logo text.
#
#logo_text ""

# TAG:  logo_text_color
#       Html page logo texti color.
#
#logo_text_color black

# TAG:  logo_image_size
#       Html page logo image size. 
#       width height
#
#image_size 80 45

# TAG:  background_image
#       Html page background image
#
#background_image none

# TAG:  password
#       User password file used by authentication
#       If you put here, reports will be generated only for users in.
#
#password none

# TAG:  temporary_dir
#       Temporary directory name
#       sqmgrlog -w dir
#
#temporary_dir /tmp

# TAG:  output_dir
#       Where is the reports will ne stored.
#       sqmgrlog -o dir
#
#output_dir /usr/local/etc/httpd/htdocs/squid-reports

# TAG:  output_email
#       Email address to send the reports
#       sqmgrlog -e email
#
#output_email none

# TAG:  resolve_ip yes/no
#       Convert ip address to dns name
#       sqmgrlog -n
#resolve_ip yes

# TAG:  report1_sort_field field normal/reverse
#       Sort field for the first report (topger)
#       Options: USER CONNECT BYTES TIME
#
#report1_sort_field BYTES reverse

# TAG:  report2_sort_field field normal/reverse
#       Sort field for the second report
#       Options: SITE CONNECT BYTES TIME
#
#report2_sort_field BYTES reverse

# TAG:  exclude_users file
#       users within the file will be excluded from reports.
#
#exclude_users none

# TAG:  exclude_hosts file
#       Hosts, domains or subnets within the file will be excluded from reports. 
#
#       Eg.: 192.168.10.10 - exclude ip address only
#            192.168.10.0  - exclude full C class
#            s1.acme.foo   - exclude hostname only
#            acme.foo      - exclude full domain name
#
#exclude_hosts none

# TAG:  useragent_log file
#       Put here where is useragent.log to nable useragent report.
#
#useragent_log none

# TAG:  date_format
#       Date format in reports: e (Europe=dd/mm/yy), u (USA=mm/dd/yy)
#date_format u

Usage: sqmgrlog -h

Source: http://www.ineparnet.com.br/orso/index.html

Any suggests and/or comments, plase: orso@ineparnet.com.br
