Access Logs WordPress plugin writes on files (monthly rotated) the accesses to your blog in the apache combined format.

It can be useful to people who don't have the row access log files, or for who want only the page request tracked and not mixed up with the logs for images, javascritps, admin requests.

Installation and usage

Download the plugin from here, unzip and copy the plugin folder into wp-contents/plugins. Activate it. That's all.

The plugin, on activation, creates the "logs" folder under "wp-content" and start to write. The is not concurrency checks, so for high volume sites the logs can be corrupted, but with 2000-3000 page views a day I never see that.

You should protect the folder with an .htaccess file, otherwise anyone can download you logs.

The logs can grow very quickly, pay attention to your disk space.

Example of logs

This is an example of logs produced (directly from this blog):

219.122.34.250 - - [02/Apr/2008:06:16:51 +0200] "GET /english/feed/rss HTTP/1.1" 200 0 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"
219.122.34.250 - - [02/Apr/2008:06:16:52 +0200] "GET /english/feed/atom HTTP/1.1" 200 0 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"
67.111.14.203 - - [02/Apr/2008:07:33:32 +0200] "GET /english/feed HTTP/1.0" 200 0 "" "Technoratibot/0.7"
60.48.48.155 - - [02/Apr/2008:07:28:38 +0200] "GET /english/massages/therapeutic-breast-massage-video HTTP/1.1" 200 0 "http://www.google.com/search?hl=en&q=breasts+video" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)"

This kind of logs a completely compatible with any logs analyzer writte to precess the Apache access logs.

Leave a Reply