DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:statdisplay

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:statdisplay [2016-08-29 11:21] – [Limitations] grosseplugin:statdisplay [2024-01-08 16:13] (current) Aleksandr
Line 5: Line 5:
 author     : Andreas Gohr author     : Andreas Gohr
 email      : gohr@cosmocode.de email      : gohr@cosmocode.de
-type       : syntax +type       : syntax, CLI 
-lastupdate : 2016-08-29 +lastupdate : 2022-12-12 
-compatible : Elenor of Tsort +compatible : Greebo, Hogfather, Igor 
-depends    : logstats+depends    : 
 conflicts  conflicts 
 similar    : statistics, stats similar    : statistics, stats
Line 18: Line 18:
 ---- ----
  
-[[http://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]+[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 The statdisplay plugin displays various statistics computed using a log file (NCSA combined i.e. like Apache) of all access to DokuWiki pages. The logfile can be read from an Apache log file, or if not available, generated using the [[logstats]] plugin.  The statdisplay plugin displays various statistics computed using a log file (NCSA combined i.e. like Apache) of all access to DokuWiki pages. The logfile can be read from an Apache log file, or if not available, generated using the [[logstats]] plugin. 
Line 28: Line 28:
 ===== 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.
  
 ===== Log Analysis ===== ===== Log Analysis =====
  
-Once installed and configured through the Configuration Manager, it will automatically start to analyze the log file. To limit the time and memory consumption of the log analysis, this is done in chunks of maximum 10000 lines per run. The log file analysis is triggered through DokuWiki's [[:indexer|indexer]] mechanism - there is no need to trigger anything manually.+Once installed and configured through the Configuration Manager, it will automatically start to analyze the log file. To limit the time and memory consumption of the log analysis, this is done in chunks of maximum number of lines per run. The log file analysis is triggered through DokuWiki's [[:taskrunner]] mechanism - there is no need to trigger anything manually. 
 + 
 +Note: it is important to adjust the number of lines to analyze in the config through the lines parameter. If your wiki has many accesses, the default of 500 may be too low to effectively analyze your logs. 
 + 
 +==== Command Line Interface ==== 
 + 
 +The command line interface allows you to quickly catch up with an existing log file. Run it like this in your DokuWiki directory: 
 + 
 +    $> ./bin/plugin.php statdisplay parse --lines 4000 
 + 
 +Increasing the number of lines analysed at once can increase the effectiveness when running from command line. When the parameter is not given the one from the config is used. 
 + 
 +You can also use the CLI to completely reindex your log file (this throws away all previously analyzed data). 
 + 
 +    $> ./bin/plugin.php statdisplay parse --clear --lines 4000 
  
 ===== Limitations ===== ===== Limitations =====
 +
 The plugin tries to limit it's memory usage as far as possible. The log file is only read line-by-line. However all aggregated data is held inside a single memory structure. If you have a lot of accesses, or are running the plugin over a very long period of time, you may need to increase the memory size limit in your php.ini file. The plugin tries to limit it's memory usage as far as possible. The log file is only read line-by-line. However all aggregated data is held inside a single memory structure. If you have a lot of accesses, or are running the plugin over a very long period of time, you may need to increase the memory size limit in your php.ini file.
 +
 +==== Update frequency ====
 +
 +The chunksize that is read is determined by the number in the configuration. This also determinates that the plugin waits for about this number of accesses before another chunk is read. You may want to raise this number for wikis with many active users or lower it for wikis with few active users.
  
 ===== Syntax ===== ===== Syntax =====
Line 50: Line 70:
  
   {{statdisplay>progress bar}}   {{statdisplay>progress bar}}
 +
 ==== Access Summary ==== ==== Access Summary ====
  
plugin/statdisplay.1472462464.txt.gz · Last modified: 2016-08-29 11:21 by grosse

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