DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:logstats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:logstats [2013-01-11 12:57] andiplugin:logstats [2024-01-08 16:00] (current) Aleksandr
Line 1: Line 1:
-====== Log Statistics plugin ======+====== Log Statistics Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: This plugin provides a log file (NCSA combined i.e. like Apache) of all access to DokuWiki pages.+description: This plugin provides a log file (NCSA combined i.e. like Apache) of all access to DokuWiki pages
 author     : Andreas Gohr author     : Andreas Gohr
-email      : gohr@cosmocode.de+email      : dokuwiki@cosmocode.de
 type       : action type       : action
-lastupdate : 2012-12-17 +lastupdate : 2016-07-06 
-compatible : Angua, Adora Belle+compatible : Binky, Angua, Adora Belle, Detritus, Elenor of Tsort, Greebo, Igor
 depends    :  depends    : 
 conflicts  conflicts 
Line 13: Line 13:
 tags       : logging, statistics tags       : logging, statistics
  
-downloadurl: http://github.com/cosmocode/dokuwiki-plugin-logstats/zipball/master +downloadurl: https://github.com/cosmocode/dokuwiki-plugin-logstats/zipball/master 
-bugtracker : http://github.com/cosmocode/dokuwiki-plugin-logstats/issues +bugtracker : https://github.com/cosmocode/dokuwiki-plugin-logstats/issues 
-sourcerepo : http://github.com/cosmocode/dokuwiki-plugin-logstats/+sourcerepo : https://github.com/cosmocode/dokuwiki-plugin-logstats/
 donationurl:  donationurl: 
 ---- ----
Line 25: Line 25:
 The logfile can be analyzed using popular web analytics software or within DokuWiki through the [[plugin:statdisplay|statdisplay plugin]]. The logfile can be analyzed using popular web analytics software or within DokuWiki through the [[plugin:statdisplay|statdisplay plugin]].
  
 +[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ==== Changes ==== ==== Changes ====
  
 {{rss>https://github.com/cosmocode/dokuwiki-plugin-logstats/commits/master.atom date}} {{rss>https://github.com/cosmocode/dokuwiki-plugin-logstats/commits/master.atom date}}
- 
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
  
-The configuration of this plugin can be managed directly in dokuwiki (see Configuration link in admin interfarce).+The configuration of this plugin can be managed directly in DokuWiki (see Configuration link in admin interface).\\ 
 +For others parameters edit the file lib/plugins/logstats/conf/dafault.php
  
 ==== Log File Location ==== ==== Log File Location ====
Line 46: Line 47:
 $conf['plugin']['logstats']['accesslog'] = "access.log"; $conf['plugin']['logstats']['accesslog'] = "access.log";
 </code> </code>
- 
  
 ==== Banned IPs ==== ==== Banned IPs ====
Line 71: Line 71:
 $conf['plugin']['logstats']['banned_agents'] = "Googlebot,HooWWWer"; $conf['plugin']['logstats']['banned_agents'] = "Googlebot,HooWWWer";
 </code> </code>
- 
  
 ===== Known Limitations ===== ===== Known Limitations =====
Line 79: Line 78:
 Logging might have some slight impact on the performance as each request will create a disk write. Logging might have some slight impact on the performance as each request will create a disk write.
  
 +==== Problem when log file increases above 64 MB: ====
  
 +If the size to access.log file is bigger than 64 MB, the following message was printed in the server log and dokuwiki was out of service:
 +<code>
 +FastCGI: "...doku.php" aborted: incomplete headers (0 bytes) received from server after 4 sec
 +</code>
 +My dokuwiki is hosted by strato ("PowerWeb Basic" Packet). I have no chance to change anything in the php configuration. I've spent a lot of time trying to figure out what the problem was. It would be nice to have a better error indication, or even better, to add a file limitation field to the plugin configuration and to archive the file once the size limit is reached.
  
 +===== Suggestions =====
  
 +Is it possible to perform the tool with annual logs file  ?
 +eg.
 +<code php>$conf['plugin']['logstats']['accesslog'] = "access.log";</code>
 +could create ''2014.access.log'' if the current year is 2014, ''2015.access.log'' if the current year is 2015
plugin/logstats.1357905479.txt.gz · Last modified: 2013-01-11 12:57 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki