Watchdog Event Extras

Component ID

2290881

Component name

Watchdog Event Extras

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1470

Component created

Component changed

Component body

Overview

Allows other information to be displayed for log events.
I created this module as I would often find myself searching for an ip address of an event to see where the user was based.
This module overrides the standard event log page outputting the same and also allowing other modules to easily add more rows/info to the log report page (D7 hook, or D8 plugin).

Features

Currently it adds

  • Geo information and map for the event hostname/ip (uses http://freegeoip.net web service)
  • Information reported from stopforumspam.com for the IP and also for the username for failed login attempts
  • Reverse DNS information from the service at http://www.statdns.com/api/ (THIS NO LONGER WORKS AS THE SERVICE IS NO LONGER FREE)

Branches

7.x-1.x -
7.x-2.x - This is for use with the Better Watchdog UI module
8.x-1.x -

Requirements

7.x-1.x -Core database logging to be enabled
7.x-2.x - Better Watchdog UI module
8.x-1.x -Core database logging to be enabled

API KEY
Google is now requiring an API key to use it's map api.
The geo map looks for a variable called "google_maps_api_key". There is no interface to set this, you have to add it to your settings.php file. eg.
Drupal 7:
$conf['google_maps_api_key'] = 'XXX';
Drupal 8
$settings['google_maps_api_key'] = 'XXX';
get an api key HERE

Extending

The drupal 7 version provides a hook:
MYMODULE_watchdog_event_extras_alter(&$rows, $dblog)

The Drupal 8 version uses the plugin API
Look how this modules plugins are implemented by looking in the src/Plugin/WEE folder