[go: up one dir, main page]

Menu

Tree [fdd2ce] v2.3.3 /
 History

HTTPS access


File Date Author Commit
 cfgaux 2011-01-12 Frédéric Marchal Frédéric Marchal [7b0f91] Update the po files
 documentation 2012-02-03 Frédéric Marchal Frédéric Marchal [461b47] Sort the user's log just before using it
 fonts 2009-06-25 Frédéric Marchal Frédéric Marchal [d6e703] Mass commit of all the changes made between ver...
 images 2006-02-15 Guido Serassio Guido Serassio [491b86] Imported Sarg 2.1.0
 include 2012-11-13 Frédéric Marchal Frédéric Marchal [a05146] Change version number to 2.3.3
 po 2012-11-13 Frédéric Marchal Frédéric Marchal [66481e] Update the translation files
 samples 2009-12-11 Pedro Orso Pedro Orso [717996] LDAP usertab feature added
 sarg-php 2010-02-02 Frédéric Marchal Frédéric Marchal [e2f130] Ported r225 from branches/v2_2_7 (remove Pedro ...
 sorttable 2011-07-04 Frédéric Marchal Frédéric Marchal [2ef1d2] Protect the columns sorting against missing or ...
 .gitignore 2012-05-21 Frédéric Marchal Frédéric Marchal [e2f70d] Include .gitignore in the repository
 ABOUT-NLS 2011-01-12 Frédéric Marchal Frédéric Marchal [7b0f91] Update the po files
 BETA-TESTERS 2005-07-17 Guido Serassio Guido Serassio [25697a] This commit was generated by cvs2svn to compens...
 CMakeLists.txt 2012-11-13 Frédéric Marchal Frédéric Marchal [a05146] Change version number to 2.3.3
 CONTRIBUTORS 2009-06-25 Frédéric Marchal Frédéric Marchal [d6e703] Mass commit of all the changes made between ver...
 COPYING 2005-07-17 Guido Serassio Guido Serassio [25697a] This commit was generated by cvs2svn to compens...
 ChangeLog 2012-07-16 Frédéric Marchal Frédéric Marchal [27a089] Update the ChangeLog
 DONATIONS 2009-06-25 Frédéric Marchal Frédéric Marchal [c37945] Changed Pedro's address in headers.
 Doxyfile 2009-07-16 Frédéric Marchal Frédéric Marchal [48864d] Removed a few unecessary strings copy.
 LICENSE 2005-07-17 Guido Serassio Guido Serassio [25697a] This commit was generated by cvs2svn to compens...
 Makefile.in 2012-08-30 Frédéric Marchal Frédéric Marchal [729201] Autoconfigure the XSL stylesheets to produce th...
 PROGRAMMERS 2010-02-02 Frédéric Marchal Frédéric Marchal [e2f130] Ported r225 from branches/v2_2_7 (remove Pedro ...
 README 2012-11-13 Frédéric Marchal Frédéric Marchal [472acd] Update the install procedure
 README_cmake 2012-07-17 Frédéric Marchal Frédéric Marchal [f08b4a] Remove the old language files
 README_svn 2010-01-28 Frédéric Marchal Frédéric Marchal [0cdb57] Exclude the configuration script from svn as it...
 archive.sh 2012-11-13 Frédéric Marchal Frédéric Marchal [fdd2ce] Expect the git tag to start with the letter v
 auth.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 authfail.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 btree_cache.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 charset.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 config.h 2009-09-13 Frédéric Marchal Frédéric Marchal [b3695c] Use configurable paths for the files that used ...
 configure.in 2012-11-13 Frédéric Marchal Frédéric Marchal [a05146] Change version number to 2.3.3
 convlog.c 2012-08-21 Frédéric Marchal Frédéric Marchal [4c16ff] Read the log file from stdin for --convert and ...
 css.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 css.tpl 2010-05-27 Frédéric Marchal Frédéric Marchal [d183fb] Add an option to make sarg generates the css te...
 dansguardian_log.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 dansguardian_report.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 datafile.c 2012-07-15 Frédéric Marchal Frédéric Marchal [170a77] Don't blindly delete /tmp/sarg
 decomp.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 denied.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 dichotomic.c 2012-02-26 Frédéric Marchal Frédéric Marchal [0326d7] Add a cache to store the resolved IP addresses
 download.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 email.c 2012-07-16 Frédéric Marchal Frédéric Marchal [cf8015] Fix the translators comment
 exclude.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 exclude_codes 2005-07-17 Guido Serassio Guido Serassio [25697a] This commit was generated by cvs2svn to compens...
 getconf.c 2012-07-16 Frédéric Marchal Frédéric Marchal [7d82ea] Sort the top sites report by number of users co...
 grepday.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 htaccess 2005-07-17 Guido Serassio Guido Serassio [25697a] This commit was generated by cvs2svn to compens...
 html.c 2012-07-15 Frédéric Marchal Frédéric Marchal [f6bcfe] Hopefully fix the smart filter
 index.c 2012-07-15 Frédéric Marchal Frédéric Marchal [7c4264] Use the same message to report an error while d...
 indexonly.c 2012-07-15 Frédéric Marchal Frédéric Marchal [7c4264] Use the same message to report an error while d...
 ip2name.c 2012-05-21 Frédéric Marchal Frédéric Marchal [1e312c] IP address resolution using one external program
 ip2name_dns.c 2012-07-16 Frédéric Marchal Frédéric Marchal [52e095] Put quotes around the IP address reported in th...
 ip2name_exec.c 2012-07-16 Frédéric Marchal Frédéric Marchal [52e095] Put quotes around the IP address reported in th...
 lastlog.c 2012-07-15 Frédéric Marchal Frédéric Marchal [7c4264] Use the same message to report an error while d...
 log.c 2012-08-29 Frédéric Marchal Frédéric Marchal [31ea9e] Compute and display execution statistics
 longline.c 2012-07-15 Frédéric Marchal Frédéric Marchal [cdf22c] Limit the maximum length of a text line
 realtime.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 redirector.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 repday.c 2012-07-18 Frédéric Marchal Frédéric Marchal [63aa60] Format the hour in a translator friendly way
 report.c 2012-07-16 Frédéric Marchal Frédéric Marchal [49bc63] Add a missing \n at the end of a message
 sarg.1 2012-08-30 Frédéric Marchal Frédéric Marchal [1fd96d] Add the documentation for the --statistics para...
 sarg.conf 2012-07-16 Frédéric Marchal Frédéric Marchal [7d82ea] Sort the top sites report by number of users co...
 sarg_htaccess 2010-03-11 Frédéric Marchal Frédéric Marchal [d5d021] Build the .htaccess of each report out of a tem...
 sarg_manpage.xml 2012-08-30 Frédéric Marchal Frédéric Marchal [1fd96d] Add the documentation for the --statistics para...
 siteuser.c 2012-07-16 Frédéric Marchal Frédéric Marchal [87e862] Add a few comments for the translators
 smartfilter.c 2012-07-15 Frédéric Marchal Frédéric Marchal [feae26] Delete the sorted smartfilter temporary file
 sort.c 2012-07-15 Frédéric Marchal Frédéric Marchal [4bb93b] Rewrite two messages to have one unique entry t...
 splintrc 2010-03-18 Frédéric Marchal Frédéric Marchal [2824ec] Apply a few more recommandation from splint
 splitlog.c 2012-08-21 Frédéric Marchal Frédéric Marchal [4c16ff] Read the log file from stdin for --convert and ...
 topsites.c 2012-07-16 Frédéric Marchal Frédéric Marchal [7d82ea] Sort the top sites report by number of users co...
 topuser.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 totday.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 url.c 2012-07-26 Frédéric Marchal Frédéric Marchal [fe7176] Don't fail to compile if libpcre not available
 usage.c 2012-08-30 Frédéric Marchal Frédéric Marchal [1fd96d] Add the documentation for the --statistics para...
 user_limit_block 2009-12-11 Pedro Orso Pedro Orso [e3af0a] LDAP usertab feature added
 useragent.c 2012-07-15 Frédéric Marchal Frédéric Marchal [11767c] Keep temporary files in place for inspection
 userinfo.c 2012-03-09 Frédéric Marchal Frédéric Marchal [439d83] Avoid empty file name for the user's report file
 usertab.c 2012-02-03 Frédéric Marchal Frédéric Marchal [61d965] Change the year in the header of every C file
 util.c 2012-07-16 Frédéric Marchal Frédéric Marchal [cc6221] Clearly report an error in the months list

Read Me

Sarg is a Squid Analysis Report Generator that allow you to view "where" your users
are going to on the Internet.
Sarg generates reports in html, with many fields, like: users, IP Addresses, bytes, sites and times.

Source: http://sourceforge.net/projects/sarg/


Installation
------------

1. run ./configure

   Useful configure options:
     --prefix - The root directory of the installation
               default: /usr/local

     --bindir - where sarg binary will be saved
               default: /usr/local/bin

     --sysconfdir - where the configuration directory is
               default: /usr/local/etc

     --mandir - where the sarg man page will be saved
               default: /usr/local/share/man

     --enable-sargphp - where to install sarg-php (--disable-sargphp don't install sarg-php)
               default: /var/www/html

     --enable-fontdir - where to find the fonts for the reports (--diable-fontdir don't install the fonts)
               default: /usr/local/share/sarg/fonts

     --enable-imagedir - where sarg take the images to include in the reports
               default: /usr/local/share/sarg/images

     --enable-extraprotection - compile sarg with extra GCC options for increased security
               default: use standard compilation warnings and no protection
	       If compilation fails, try to configure sarg without this flag.

   For a complete list of all the options, run ./configure --help.

   Example:
     ./configure --prefix=/usr --sysconfdir=/etc/sarg --enable-extraprotection

3. make

4. sudo make install

5. Go to /usr/local/sarg (or the path defined with --sysconfdir on configure)
   and change sarg.conf to your liking. You may use sarg.conf provided along with
   the sources as a template for your new sarg.conf. In any case, have a look at
   the sample sarg.conf for new options.

6. Install cron jobs to generate the reports.

   For instance, create a file named /etc/cron.daily/sarg with the content:

     #!/bin/sh
     sarg -d day-1 -w /tmp/sarg.daily -o /var/www/squid-reports/Daily /var/log/squid3/access.log*

   A weekly report is produced by /etc/cron.weekly/sarg:

     #!/bin/sh
     sarg -d week-1 -w /tmp/sarg.weekly -o /var/www/squid-reports/Weekly /var/log/squid3/access.log*

   And the monthly report is created with /etc/cron.monthly/sarg:

     #!/bin/sh
     sarg -d month-1 -w /tmp/sarg.monthly -o /var/www/squid-reports/Monthly /var/log/squid3/access.log*

   Make sure all those files are executable:

     chmod 755 /etc/cron.daily/sarg /etc/cron.weekly/sarg /etc/cron.monthly/sarg

Usage: sarg -h

Sorttable.js
------------

Starting with sarg v2.3.2-pre2, a javascript is distributed along with sarg to
dynamically sort the reports. It is sorttable.js written by Stuart Langridge
and available at http://www.kryogenix.org/code/browser/sorttable/.  The version
included with sarg contains some fixes and improvements over the original
version. The patches have been reported to the author but he doesn't seem to
support it any more.

To use sorttable.js (or any other script including your own custom made
script), simply copy it to your website and edit sarg.conf to point the
sorttable option to the location of the script on your website. The path
indicated in sarg.conf must be the path as seen by a client visiting your
server.

Translations
------------

As of March 14th, 2010 (sarg 2.3), the translations have been ported to gettext. This makes it easier
to translate all the messages (the number of translated messages went from 144 to 448). Therefore, the
old language files are obsolete. The old translated message have been converted automatically to
gettext but due to the changes made to the strings in the program after the automatic conversion,
it is likely that the old messages are, at best, meaningless.

Translations are handled at http://translationproject.org/domain/sarg.html. If your language is
not yet supported or the current translation is obsolete, please check with the team working
on your language at the Translation Project to be sure nobody is assigned to sarg. If necessary,
contact the coordinator of that team to join the team and be assigned to sarg.

If no po file exists for you language, download the latest sarg.pot on this page
http://translationproject.org/domain/sarg.html and rename it as YourLanguageCode.po. See
http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes for the list of the
valid languages codes.

Translate YourLanguageCode.po (see http://www.gnu.org/software/gettext/manual/gettext.html for more informations).

Submit the translated po file to robot@translationproject.org. You must be a member of the team
working on the language for which you are submitting the po file or the robot will reject
your file. It is not necessary to fill the disclaimer to translate sarg.


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
Fred Pacquier <fredp@dial.oleane.com>			- French language
Leonardo A. D'Angelo <ldangelo@san-cayetano.com>	- Spanish language
Seth Mos <stimpy@stimpy.multiweb.nl>			- Dutch language
Milos Prudek <prudek@nembv.cz>                          - Czech language
Dima I. Allaverdov <allav@ur.rags.ru>                   - Russian_windows1251 language
V Gatut Harijiso <gatut@student.unpar.ac.id>		- Indonesian language
Ivan Minchev <vanko@uni-svishtov.bg>			- Bulgarian_windows1251 language
Akira Kitamura <click@anet.ne.jp>			- Japanese language
Radovan Drobnjakovic <admin.rts@rts.co.yu>		- Serbian language
Pieter Kooistra <pkooistra@hr.nl>			- Dutch language fix
Andrew Okhmat <andy@crgu.com>			        - Russian Koi8 language fixed
Nikolai V. Ivanyushin <koko@infocenter.bryansk.ru>	- Russian and Bulgarian language fix
Juris Valdovskis <juris@auce.lv>			- Latvian language
Jordan Kanev <dancho@globcom.net>			- Bulgarian language fix
Wszebor Boksa <Wszebor_Boksa@koncept.pl>		- Polish language
Adi Cretu <adi@usv.ro>					- Romanian language
Roman Vynar <rvynar@icqmail.com>			- Ukrainian_windows1251 language
Andreu Sanchez <tanis@lleida.com>			- Catalan language
Antonis Maglaras <vegos@magla.gr>			- Greek language
Dusan Woletz <Dusan.WOLETZ@orange.sk>			- Slovak Language
Jose Luis Hernandez <jhdz@simbiotica.net>		- Spanish language fix
Theo kastermans <t.kastermans@zandvoort.nl>		- Dutch language fix
Alex Deiter <tiamat@komi.mts.ru>			- Russian UTF-8 language
Josef Karliak <karliak@ajetaci.cz>			- Czech UTF-8
Igor Ageikin <iageikin@lipen.elektra.ru>		- Russian UTF-8 fix
Joe Hansen <joedalton2 (at) yahoo (dot) dk>             - Danish language


Suggestions or remarks
----------------------

Any suggests or comments may be posted on the forum
http://sourceforge.net/projects/sarg/forums/forum/363374 or sent to Frederic Marchal
(fmarchal@users.sourceforge.net)