Title: WordPress hack: wp-logging
Last modified: August 18, 2016

---

# WordPress hack: wp-logging

 *  [culturevulture](https://wordpress.org/support/users/culturevulture/)
 * (@culturevulture)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/wordpress-hack-wp-logging/)
 * Well, I needed a quick and dirty WordPress hack to keep track of my visitors.
   I have [webalizer](http://www.mrunix.net/webalizer/) running but wanted to try
   out something new. And here it is: wp-logging!
    It comes as a single php file,
   one MySQL table needs to be created and that’s it. In the current version there
   is no graphical nor textual log analysis. That will be implemented in the near
   future. This hack will log the following:
    - timestamp of access
    - referrer
    - ip
    - host name
    - browser
    - accessed WP posting
    - static ip variable that will not be logged
 * Get the source files including a readme file [here](http://www.tt-digital.de/files/wp-logging/wp-logging_0.2_tt-digital.zip)(
   version 0.2). Feedback is appreciated. Visit [http://www.tt-digital.de](http://www.tt-digital.de)
   for updates.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mtanner](https://wordpress.org/support/users/mtanner/)
 * (@mtanner)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/wordpress-hack-wp-logging/#post-34629)
 * I installed that script about 15minutes after you posted, it’s been 5 hours and
   I’ve had several dozen visitors however I see nothing on my wp-logging.php page.
   Am I looking in the right pace? I followed the instructions quite well.
 *  [Nick Momrik](https://wordpress.org/support/users/mtdewvirus/)
 * (@mtdewvirus)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/wordpress-hack-wp-logging/#post-34630)
 * “In the current version there is no graphical nor textual log analysis. That 
   will be implemented in the near future.”
 *  Thread Starter [culturevulture](https://wordpress.org/support/users/culturevulture/)
 * (@culturevulture)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/wordpress-hack-wp-logging/#post-34662)
 * Please change line 14 of wp-logging.php to $query = “INSERT INTO wp_logging VALUES(”,’
   $time’,’$referrer’,’$host’,’$ip’,’$browser’,’$id’)”;
    There was a different (
   wrong) table name. Then it should work. Downloadable version is already updated.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress hack: wp-logging’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [culturevulture](https://wordpress.org/support/users/culturevulture/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/wordpress-hack-wp-logging/#post-34662)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
