=== modified file 'modules/dblog/dblog.admin.inc'
--- modules/dblog/dblog.admin.inc	2009-06-22 00:46:47 +0000
+++ modules/dblog/dblog.admin.inc	2011-01-08 19:02:05 +0000
@@ -167,6 +167,10 @@
         check_plain($dblog->hostname),
       ),
       array(
+        array('data' => t('Machinename'), 'header' => TRUE),
+        check_plain($dblog->machinename),
+      ),
+      array(
         array('data' => t('Operations'), 'header' => TRUE),
         $dblog->link,
       ),

=== modified file 'modules/dblog/dblog.install'
--- modules/dblog/dblog.install	2009-09-16 19:57:16 +0000
+++ modules/dblog/dblog.install	2011-01-08 18:58:44 +0000
@@ -86,6 +86,13 @@
         'default' => '',
         'description' => 'Hostname of the user who triggered the event.',
       ),
+      'machinename' => array(
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+        'default' => '',
+        'description' => 'Name of the machine the event occurred on.',
+      ),
       'timestamp' => array(
         'type' => 'int',
         'not null' => TRUE,
@@ -114,6 +121,12 @@
   return $ret;
 }
 
+function dblog_update_6001() {
+  $ret = array();
+  db_add_field($ret, 'watchdog', 'machinename', array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''));
+  return $ret;
+}
+
 /**
  * @} End of "defgroup updates-6.x-extra"
  * The next series of updates should start at 7000.

=== modified file 'modules/dblog/dblog.module'
--- modules/dblog/dblog.module	2010-03-04 01:32:05 +0000
+++ modules/dblog/dblog.module	2011-01-08 19:00:44 +0000
@@ -131,10 +131,11 @@
  */
 function dblog_watchdog($log = array()) {
   $current_db = db_set_active();
+  $uname=posix_uname();
   db_query("INSERT INTO {watchdog}
-    (uid, type, message, variables, severity, link, location, referer, hostname, timestamp)
+    (uid, type, message, variables, severity, link, location, referer, hostname, machinename, timestamp)
     VALUES
-    (%d, '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', %d)",
+    (%d, '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', %d)",
     $log['user']->uid,
     $log['type'],
     $log['message'],
@@ -144,6 +145,7 @@
     $log['request_uri'],
     $log['referer'],
     $log['ip'],
+    $uname['nodename'],
     $log['timestamp']);
 
   if ($current_db) {

