%ACCESSSTATS% - displays the number of successful access to the current topic.
"" - specify a regexp to search the access log file with
web="" - specify web
topic="" - specify topic
attachment="" - specify attachment
%ACCESSSTATS{"GET\s.+\s200\s"}% - count the number of successful GET request.
%ACCESSSTATS{web="MyWeb" topic="MyTopic"}% - count the numer of successful GET request for specified web abd topic.
%ACCESSSTATS{web="MyWeb" topic="MyTopic" attachment="MyAttachment"}% - count the numer of successful GET request for specified attachment on specified web and topic.
%ACCESSSTATS{attachment="MyAttachment"}% - count the number of successful GET request for specified attachment in current topic.
AccessStatsPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/AccessStatsPlugin.txt | Plugin topic |
lib/TWiki/Plugins/AccessStatsPlugin.pm | Plugin Perl module |
{Plugins}{AccessStatsPlugin}{Debug} - default 0 {Plugins}{AccessStatsPlugin}{LogFileName} - default 'access_log' {Plugins}{AccessStatsPlugin}{LogDirectory} - default '/var/logs/httpd' {Plugins}{AccessStatsPlugin}{EnableRegexSearch} - default 0
| Plugin Author: | TWiki:Main.StephaneLenclud |
| Copyright: | © 2006-2007, TWiki:Main.StephaneLenclud © 2008-2011 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 2011-05-03 |
| Change History: | |
| 2011-05-03: | TWikibug:Item6701: Move settings to configure; doc improvements -- TWiki:Main.PeterThoeny |
| 9 Apr 2007 | Fixing issue with unzipped files like access.log.n not being parsed. |
| 21 Feb 2006: | Supports gz archived apache log file |
| 20 Feb 2006: | Now supports web, topic and attachment parameter |
| 18 Feb 2006: | Initial version |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | Compress::Zlib |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Benchmarks: | GoodStyle nn%, FormattedSearch nn%, AccessStatsPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/AccessStatsPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/AccessStatsPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/AccessStatsPluginAppraisal |
| PackageForm | |
|---|---|
| TopicClassification | PluginPackage |
| TestedOnTWiki | 5.1, 5.0, 4.3, 4.2, 4.1, 4.0.0 |
| TestedOnOS | OsLinux |
| ShouldRunOnOS | OsLinux, AnyWin |
| InstalledOnTWikiOrg | No |
| DemoUrl | |
| DevelopedInSVN | Yes |
| ModificationPolicy | PleaseFeelFreeToModify |
| RelatedTopics | PageStatsPlugin, CounterPlugin |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
AccessStatsPlugin.md5 | manage | 0.2 K | 2011-05-03 - 07:24 | PeterThoeny | |
| |
AccessStatsPlugin.tgz | manage | 6.5 K | 2011-05-03 - 07:24 | PeterThoeny | |
| |
AccessStatsPlugin.zip | manage | 8.5 K | 2011-05-03 - 07:24 | PeterThoeny | |
| |
AccessStatsPlugin_installer | manage | 3.4 K | 2011-05-03 - 07:24 | PeterThoeny |