Commit Graph

454 Commits

Author SHA1 Message Date
Gilles Darold 43ba618e01 Merge branch 'master' of github.com:darold/squidanalyzer 2020-11-06 08:00:07 +01:00
Gilles Darold 647ebb1f4e Allow new value to TimeZone with "auto", in this case SquidAnalyzer will
autodetect the timezone and apply it.
2020-11-06 07:58:27 +01:00
Gilles Darold d42f10804a Change DNSLookupTimeout unit, must now be set in milliseconds. Thanks to Jo Deref fotr the report. 2020-11-06 07:18:12 +01:00
Gilles Darold 2b8a4f3c66 Update documentation about logrotate configuration. Thanks to Gill Bates for the report. 2020-11-06 07:02:02 +01:00
Gilles Darold 1cdee5fed1 Set TimeZone configuration directive to +00 by default to force
SquidAnalyzer to use localtime. If this directive is commented
then SquidAnalyzer will autodetect the timezone and apply it to
all timestamp found. If the directive is set to an other timezone
value, this is this value that will be applied.
2019-07-12 21:54:13 +02:00
Gilles Darold 6b9ae0571c Fix previous lazy patch that miss replacement of all call to timegm_nocheck() by timelocal_nocheck(). Thanks to Dan for the report. 2019-07-09 07:40:44 +02:00
Gilles Darold 29dc026b0d Fix timezone autodetection. 2019-07-01 17:03:54 +02:00
Gilles Darold 89b53f1b2e Fix display history/start/end time for SquidGuard and UfdbGuard log to respect timezone adjustment. 2019-06-08 10:11:56 +02:00
Darold Gilles 31f4ad3a62 Fix removing of obsolete statistics when --preserve is set but there is no history files. 2019-05-26 09:47:36 +02:00
Gilles Darold be4214c93d Fix debian packaging with typo and compat issue. Thanks to ThomasCr for the patch. 2019-05-03 21:05:22 +02:00
Darold Gilles d7b6ea0267 Do not report Kerberos challange TCP_DENIED/407 when it is followed
by a TCP_MISS/200. Thanks to Mike Surcouf for the report.
2019-04-27 13:43:54 +02:00
Darold Gilles 621095125d Fix multiprocess temporary last_parsed file. 2019-04-26 23:27:39 +02:00
Darold Gilles ee04498250 Use system default temp directory instead of /tmp. 2019-04-26 23:26:25 +02:00
Darold Gilles 616d742eb7 Fix an obsolete compat level and a dpkg-buildpackage error.
When running running "dpkg-buildpackage -us -uc" it reports:

  dh_usrlocal: debian/squidanalyzer/usr/local/bin/squid-analyzer is not a directory
  make: *** [debian/rules:4: binary] Error 25
  dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I've changed Perl INSTALLDIRS to vendor instead of site so that it will
not be installed into /usr/local/

Thanks to Adrian Ban for the report.
2019-04-26 18:41:44 +02:00
Darold Gilles 1bfd73ce84 Fix auto detection and handling of timezone. Thanks to Mike Surcouf and Walter Takashi for the report. 2019-04-25 21:34:24 +02:00
Darold Gilles 640385338d Fix German translation of Denied. Thanks to Peter Hartung for the report. 2019-04-14 08:57:55 +02:00
Gilles Darold abd1ef84df Try to fix performances issue in URL exclusion. 2019-03-08 09:49:26 +01:00
Gilles Darold f5753865db This reverts commit 5b006411e3. 2019-03-08 08:57:33 +01:00
Darold Gilles 5b006411e3 Second attempt to ix regexp match error when looking for ip/user/uri
in internal caches.
2019-03-07 07:52:31 +01:00
Darold Gilles 28ead4d7e9 Revert commit 842ade0553 that too much slow down
SquidAnalyzer.
2019-03-07 07:48:38 +01:00
Gilles Darold 842ade0553 Fix regexp match error when looking for ip/user/uri in internal caches. Thanks to Gergely Szasz for the report. 2019-03-01 10:03:57 +01:00
Gilles Darold 070c5f94ad Fix broken squidanalyzer.spec and adjust Makefile.PL to have files at the right place.
A packaging/README file is added to explain how to use rpmbuild.
Thanks to NuxRo for the report.
2019-01-02 23:37:00 +01:00
Gilles Darold 1bd61f726d Fix non displayed cells in table of Network stats report. Thanks to Louis-Berthier Soulliere for the report. 2019-01-02 09:14:34 +01:00
Gilles Darold 143dc649d1 Add TopDenied configuration directive to be able to show more denied URL
than in other reports.
2019-01-01 22:37:08 +01:00
Gilles Darold 46e74146ae Add UrlAlias configuration directive (default: /etc/squidanalyzer/url-aliases)
used to set path to the file containing url alias name. You may want to group
URL under a single alias to agregate statistics, in this case create a file
with this format :

	URL_ALIAS     URL_REGEXP1,URL_REGEXP2,...

For example:

	VIDEO           .*\.googlevideo\.com.*,.*\.youtube\.com.*,.*\.viadeo.com.*
	FACEBOOK        .*\.fbcdn\.net.*,.*\.facebook\.com.*
	GOOGLE          .*\.google[\-\.].*

Regexp must use the Perl regular expression. Thanks to Gergely Szasz for
the feature request.
2019-01-01 21:35:07 +01:00
Gilles Darold 3b2b86f3f7 Fix RPM squidanalyzer.spec file. Thanks to NuxRo for the report. 2019-01-01 18:27:09 +01:00
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