Commit Graph

428 Commits

Author SHA1 Message Date
Gilles Darold 90a1306fc9 Update year in copyright 2019-01-01 18:15:21 +01:00
Gilles Darold eb3eca38bd Fix parsing of ufdbguard log. 2019-01-01 18:11:40 +01:00
Gilles Darold 131b161ebe Add StoreUserIp configuration directive to report the different ip addresses
used by a user when squid user authentication is enabled. Thanks to davidrbind
for the feature request.
2019-01-01 16:35:52 +01:00
Gilles Darold cf736a08b2 Add support to e2guardian log format, it is similar to native squid log format but with empty log server or peer names (%<A). Thanks to 2W Consultoria for the report. 2018-12-14 11:23:49 +01:00
Gilles Darold 0f52288da2 Merge branch 'master' of github.com:darold/squidanalyzer 2018-12-04 09:18:24 +01:00
Gilles Darold b2f4e6695d Add RefreshTime configuration directive and -R | --refresh command line
options:

        Insert a html Refresh tag into all index.html files. The value is
        the refresh intervalle in minutes. Default to 5 minutes. Can be
        overridden at command line with option -R | --refresh

To avoid loading index.html pages with incomplete content when SquidAnalyzer
is writing into the file, SquidAnalyzer first write into a index.html.tmp
file and once it is written it rename it into index.html.

Thanks to Weverton Everaldo Lubask and Pablo Ariel Tofano for the feature
request.
2018-12-04 09:17:37 +01:00
Gilles Darold d5547c50ae Add RefreshTime configuration directive and -R | --refresh command line
options:

        Insert a html Refresh tag into all index.html files. The value is
        the refresh intervalle in minutes. Default to 5 minutes. Can be
        overridden at command line with option -R | --refresh

To avoid loading index.html pages with incomplete content when SquidAnalyzer
is writing into the file, SquidAnalyzer first write into a index.html.tmp
file and once it is written it rename it into index.html.

Thanks to Weverton Everaldo Lubask for the feature request.
2018-12-03 23:26:57 +01:00
Gilles Darold 22cef48251 Change TimeZone configuration comment and behavior. It is not defined as
follow:

        Adjust timezone to use when SquidAnalyzer reports different time
        than graphs in your browser. The value must follow format: +/-HH.
        Default is to use local time. This must be considered as real
        timezone but the number of hours to add remove from log timestamp to
        adjust graphs times. For example:

                TimeZone       +01

        will append one hour to all graphs time series to match squid server
        timestamp.

Be warn that if you have enabled this directive before this commit the
graphs might display the wrong time. If your browser is at the same
timezone as the squid server you might want to comment this directive as
SquidAnalyzer will adjust the graphs to the right timezone by default.

Thanks to Weverton Everaldo Lubask for the report.
2018-12-03 22:27:38 +01:00
Gilles Darold 7da3a57831 Add information about Upgrade process and especially to upgrade to last development code. 2018-10-13 11:27:21 +02:00
Gilles Darold d05a2205e9 Apply fix of 0xflotus to main documentation file doc/SquidAnalyzer.pod 2018-10-11 07:02:23 +02:00
Gilles Darold 2680b338e2 Remove unwanted report of rejected connections in user stats report (hits = 0). Thanks to neok7 for the report. 2018-10-11 06:55:30 +02:00
Gilles Darold 1ee71b5463
Merge pull request #191 from 0xflotus/patch-1
fixed some small errors
2018-10-11 06:27:15 +02:00
0xflotus 17638e0e58
fixed some small errors 2018-10-11 01:27:46 +02:00
Gilles Darold 49b7eadfeb Add caching to inclusion/exclusion search on user, client network and url to improve speed. SquidAnalyzer will reclaim more memory usage. Thanks to Louis-Berthier Soulliere for the suggestion. 2018-06-13 17:08:11 +02:00
Gilles Darold 469a1e3320 Fix multiprocess on incremental mode. Thanks to Louis-Berthier Soulliere for the report. 2018-06-09 12:01:17 +02:00
Gilles Darold f1afa0306d Forgot to apply skip-history option to method new(). 2018-01-29 09:37:49 +01:00
Gilles Darold e7f986e44e Update year in copyright. 2018-01-28 15:54:27 +01:00
Gilles Darold 4f0b3a713b Add two new command line options to force file to be parsed from begining even
if an history file is present:
    --skip-history             : used to not take care of the history file. Log
                                 parsing offset will start at 0 but old history
                                 file will be preserved at end. Useful if you
                                 want to parse and old log file.
    --override-history         : when skip-history is used the current history
                                 file will be overriden by the offset of the
                                 last log file parsed.
Thanks to zeft2016 for the feature request.
2018-01-28 15:37:32 +01:00
Darold Gilles a8e60374a5 Add filename in error message "ERROR: you must give a valid path to the Squid log file." 2017-12-30 11:06:04 +01:00
Gilles Darold 65c16191fd Merge pull request #178 from tachtler/master
Update squidanalyzer.spec
2017-10-19 18:12:16 +02:00
Klaus Tachtler e936b51a83 Update squidanalyzer.spec
Correction of wrong paths from %{contentdir}/html/%{name} to %{contentdir}/%{name}.
2017-10-19 14:07:51 +02:00
Gilles Darold 93f1320ad6 Merge branch 'amishxda-master' 2017-10-19 10:46:52 +02:00
Gilles Darold 8380ea4392 Resolve merge conflict 2017-10-19 10:46:37 +02:00
Gilles Darold 41abc2b969 Merge pull request #177 from tachtler/master
Update squidanalyzer.css and squidanalyzer.spec
2017-10-19 10:25:07 +02:00
Klaus Tachtler 85abdff64a Update squidanalyzer.spec
Of security reasons, store the squidanalyzer pages data (html, images...) data NOT in /var/www/html/squidanalyzer. Use insted /var/www/squidanalyzer for it.
2017-10-17 10:34:37 +02:00
Klaus Tachtler 43aa95233f Update squidanalyzer.css
Optimize view for small and bigger screens.
2017-10-17 10:24:45 +02:00
Darold Gilles e83c76e99e Remove debug print. 2017-09-09 11:52:11 +02:00
Darold Gilles 58bdeda870 Add --with-month-stat command line to force compute month statistics when --no-year-stat is used. 2017-08-06 12:21:42 +02:00
Gilles Darold 75c88fc270 Fix a bug in Network alias replacement. Thanks to neroxyr for the report. 2017-06-23 18:36:41 +02:00
Amish e55c4b9769 Add feature to mention date range for reports.
Add feature to mention a different output directory.
Add feature to have CustomTitle just like CustomHeader.
Some bug fixes and optimization.
Ignore SIGHUP signal too.
2017-06-22 15:24:07 +05:30
Darold Gilles 8e3e68d238 Precise the number of digit in timestamp native log format. When squid crash log line can be incomplete and the next time it is started the timestamp can be corrupted. Thanks to Lukas Loucansky for the report. 2017-05-27 18:31:43 +02:00
Gilles Darold 3e9f669295 Merge branch 'master' of github.com:darold/squidanalyzer 2017-05-26 16:35:30 +02:00
Gilles Darold f94b22416d Fix parsing squidguard logs when url does not contain the protocol part. Thanks to mhotch for the patch. 2017-05-26 16:35:24 +02:00
Darold Gilles 54c33fd743 Update Changelog and version to 6.6 2017-05-07 17:03:11 +02:00
Gilles Darold 1d6d78c6ad Change user top url title from "Top n/N Url" into "Top n/N sites". Thanks to Daniel Bareiro for the report. 2017-04-30 17:04:14 +02:00
Gilles Darold bc2bfa22a6 Update documentation to clarify the use of space character in aliases files. Thanks to Darren Spruell for the report. 2017-04-03 11:20:22 +02:00
Gilles Darold 31467ff936 Fix explanation of UserAlias file format about ip address vs DNS name. Thanks to Darren Spruell for the report. 2017-03-31 10:03:16 +02:00
Gilles Darold a8bd89bc9d Fix missing report of TCP_DENIED_REPLY messages. Thanks to Jeff Gebhardt for the report. 2017-03-28 19:36:00 +02:00
Darold Gilles c52568af08 Add license file about resources file and a script to retrieve original javascript libraries. 2017-03-05 21:10:41 +01:00
Gilles Darold 40cfb1f87c Add TopStorage configuration directive to limit the storage of url to
a certain quantity in data file and sorted by OrderUrl. On huge access
log it will improve a lot the performances but you will have less
precision in the top url. Default to 0, all url will be stored.

Here are the performances of SquidAnalayzer on a 1.4 GB access log
file to parse and compute full reports over one week:

UrlReport | UserReport | Duration
----------+------------+---------
    0     |     0      |  2m30s
    0     |     1      |  3m00s
    1     |     1      | 18m15s
    1     |     1      |  9m55s when TopStorage is set to 100
2017-02-18 18:51:24 +01:00
Gilles Darold 58bb7799d9 Fix html report building that was limited to the last day. 2017-02-14 10:32:56 +01:00
Gilles Darold 8ae9fec3af Add a cache to network and user aliases for speed improvement. Thanks to Louis-Berthier Soulliere for the report. 2017-02-13 18:19:56 +01:00
Darold Gilles 899a04b13b Add TimeStart and TimeStop configuration directives to allow to
specify a start and stop time. Log line out of this time range
will not be parsed. The format of the value is HH:MM. These
directives can be overriden with the -s | --start and -S | --stop
command line options. Thanks to Louis-Berthier Soulliere for the
feature request.
2017-02-12 17:18:02 +01:00
Darold Gilles dc4ac19b49 Fix missing network alias replacement. 2017-01-10 08:27:42 +01:00
Darold Gilles a927181ca9 Update year in copyrights. 2017-01-09 08:13:02 +01:00
Darold Gilles 77d2177cb1 - Add UpdateAlias configuratio directive to apply immediately the changes
made in aliases files to avoid duplicates. You still have to use
    --rebuild to recreate previous reports with new aliases. Enabling
    this will imply a lost of performances with huges log files.
2017-01-09 08:04:26 +01:00
Darold Gilles 153cbe4c73 - Add UseUrlPort configuration directive to be able to include port number
into Url statistics. Default is to remove the port information from the Url.
  Thanks to Tobias Wigand for the feature request.
2017-01-07 10:39:08 +01:00
Darold Gilles cd790fb92a Disabled bandwidth cost report by default. 2016-11-06 17:37:41 +01:00
Darold Gilles 126a36a3dc Fix removing of obsolete year directory. 2016-11-06 12:47:18 +01:00
Darold Gilles 9a334904b8 Merge branch 'master' of github.com:darold/squidanalyzer 2016-11-06 10:53:30 +01:00