This is an old revision of the document!
Table of Contents
Log Statistics plugin
Compatible with DokuWiki
Binky,Angua, Adora Belle
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to directions, statistics
This plugin was initially written by Jean-François Lalande based on some code by Matthias Grimm.
The logstats plugin provides a log file (NCSA combined i.e. like apache) of all accesses to DokuWiki pages and media files. This way this file can be used to generate various statistics about the dokuwiki's usage.
The logfile can be analyzed using popular web analytics software or within DokuWiki through the statdisplay plugin.
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Changes
- Merge pull request #12 from dokuwiki-translate/lang_update_33 (2025-03-25 08:41)
- Merge pull request #26 from dokuwiki-translate/lang_update_565_167682… (2025-03-25 08:37)
- translation update (2023-02-19 16:40)
- Merge pull request #24 from dokuwiki-translate/lang_update_135_160062… (2020-09-21 10:45)
- translation update (2020-09-20 19:15)
- Merge pull request #23 from dokuwiki-translate/lang_update_45_1590184941 (2020-09-02 21:24)
- translation update (2020-05-23 00:05)
- Merge pull request #22 from dokuwiki-translate/lang_update_1184_15513… (2019-02-28 16:25)
Configuration and Settings
The configuration of this plugin can be managed directly in dokuwiki (see Configuration link in admin interfarce).
Log File Location
You can change the filename of the log file using the $conf['plugin']['logstats']['accesslog']
variable. When a relative file name is given (which is by default), it is relative to the data/meta/
directory.
$conf['plugin']['logstats']['accesslog'] = "access.log";
Banned IPs
You can ban some IP from being logged (for example your own IP). To do this, use the variable $conf['plugin']['logstats']['banned_ip']
which is a string containing all the banned IP addresses, separated by a comma.
$conf['plugin']['logstats']['banned_ip'] = "127.0.0.1,192.168.0.1,192.168.0.2";
Banned Users
You can ban some users (logged into DokuWiki) from being logged. To do this, use the variable $conf['plugin']['logstats']['banned_users']
which is a string containing all the banned users, separated by a comma.
$conf['plugin']['logstats']['banned_users'] = "bob,alice,gugu";
Banned User Agents (for bots)
You can ban some user agents. It useful for bots agents like google bot. To do this, use the variable $conf['plugin']['logstats']['banned_agents']
which is a string containing all the banned agent strings, separated by a comma.
$conf['plugin']['logstats']['banned_agents'] = "Googlebot,HooWWWer";
Known Limitations
Unlike your webserver, this plugin will not log any accesses to DokuWiki's own files (CSS, images, scripts, etc). Only content, that means wiki pages and media files are logged.
Logging might have some slight impact on the performance as each request will create a disk write.