The Watchdog module (Database logging since Drupal 6.x) allows a Drupal site to record system events. Use this tag for this module, any related modules, or the reports made available thanks to this module.

learn more… | top users | synonyms

1
vote
2answers
23 views

In Drupal 7 how do you output array objects to be view able in watchdog error reports?

For some reason I couldn't use devel to debug output object arrays. Is there a way to output the array data to watchdog error reporting? This would also solve the issue of having to install or enable ...
1
vote
1answer
21 views

How do I find the source of an error?

I'm seeing the following error when running cron (in terminal via drush and on screen via the status report page. Error: Call to a member function getScriptTag() on a non-object in ...
0
votes
0answers
33 views

watchdog not putting messages in log

I'm trying to write a custom message to my log (viewable at /admin/reports/dblog) using the watchdog function. function create_vector_user_mail($key, &$message, $params) { watchdog("VECTOR", ...
0
votes
1answer
23 views

After switching to syslog and disabling dblog, how can I get some of my reports back? [closed]

After disabling dblog and using syslog some of the reports such as 'Recent log messages', 'Top access denied errors', 'Top page not found errors' do not appear on the menu. Are there some modules and ...
1
vote
2answers
60 views

how to print db_select result using watchdog?

I'm trying to debug below code: $perishables = db_select('userpoints_txn', 'up_txn') ->fields('up_txn', array('txn_id', 'uid', 'points', 'remainder', 'time_stamp', 'tid', 'operation', ...
1
vote
0answers
36 views

How to read drupal reports programmatically?

Background: I have installed Maillog and need to read its mails for my behat tests. But I can not find any functions that give me an 'easy' access to this mails via php. Question: Is it possible to ...
1
vote
1answer
52 views

dblog not working, page shows a 500 Internal server error

My problem starts in a contact form with an upload box, it does everything right and sends the email, except that, on upload it shows: Warning: strtr() [function.strtr]: The second argument is not ...
0
votes
0answers
46 views

Email summary of updates performed that month

I wish to email the site owner a summary of any module or core updates performed on a monthly basis. I believe that there is a module to do this in Wordpress. Is there a Drupal module that can ...
0
votes
0answers
22 views

I have a huge problem with the form

I want a form with checkboxes that will have all the severity levels and when the user (e.g selects only the error i want to select only the errors from watchdog. My problem now is that in watchdog ...
1
vote
1answer
30 views

Using placeholders in watchdog function

I know this is simple. I have a callback function callback below: function callback($id = '121-01927'){ watchdog('print', '%message : Sample',array('%message' => $id), WATCHDOG_DEBUG, $link = ...
1
vote
0answers
17 views

Error entries in Watchdog duplicated dozen and hundreds of times in Drupal 7

I have seen that the table watchdog in my MySQL database is growing enormously, and after TRUNCATE, I see that for each visit to a single page, it generates hundreds of inserts, and when seeing them, ...
1
vote
1answer
56 views

What Drupal tables to export from broken site

I'm on localhost with Acquia Dev Desktop , Drupal 7.34. Php 5.3.29. I was just playing in the Views when suddenly the site crashed. After few drush cc and restart of Acquia Dev Desktop and trying to ...
0
votes
2answers
134 views

Export watchdog to CSV

I would like to export everything in the watchdog table to a CSV file occasionally using hook_cron(). I do not have access to PHPMyAdmin and don't want to waste time with modules like so. Right now, ...
1
vote
1answer
120 views

How to make the 'Module Updates' report available again? [closed]

I have a 7.18 Drupal site running since a long time without updates. The update manager was deactivated since then as well. Now I had to move the site to another server and after reactivating the ...
0
votes
2answers
254 views

Why doesn't my watchdog() function run when I execute my custom module from Drush

I have a custom module that performs an import from an xml file. It can be invoked two different ways. From a menu callback or a custom drush command. The import works fine and all of it's many ...
0
votes
1answer
19 views

I cannot see the dblog of my kickstart commerce [closed]

When I navigate to /admin/reports/dblog, nothing happens. It only shows me a node, and if I go to the Admin menu then I cannot see the reports link. Check the image below to better illustrate my ...
1
vote
1answer
52 views

display status report even though the module is disabled

I want to execute some code in my custom module to display status reports even though my custom module is disabled. Hook_requirements can be used to display status reports. But it seems that it only ...
3
votes
3answers
2k views

Write all PHP errors, warnings and notices to error_log

Drupal catches PHP warnings and notices to log them via dblog or syslog. As a result, there are two places to monitor for PHP errors (with the watchdog UI not well suited to cater for any large number ...
0
votes
0answers
67 views

Googlebot and AmazonBot trying to access every Drupal page I edit

Ok, this is extremely weird. The point is, everytime I edit a node on my website, and then go to the "recent logs" page, I always see a request (with "access denied") from an IP owned by Google or ...
2
votes
0answers
415 views

How can I trace the source of a redirect error listed in Administration -> Reports?

Under Reports -> Recent log messages, I have a large number of errors such as the following: Type: access denied Date: November 7, 2013 User: Anonymous Location: ...
1
vote
1answer
124 views

programmatically saving a node doesn't add any record to dblog

When I call node_save to save a node, no record for "a new node has been saved.." is added to watchdog. Is this normal? If yes, how do I also add a watchdog record? (without calling the watchdog ...
2
votes
2answers
102 views

Watchdog and translations

Coder says The $message argument to watchdog() should NOT be enclosed within t(), so that it can be properly translated at display time. Does this mean that $message will be translated by watchdog by ...
2
votes
2answers
182 views

Table Description Documentation

Is there a document that briefly describes Drupal 7 tables, their general use, common issues, growth patterns, and the effect of truncating? I'm not understand why my database grew from 11MB last ...
1
vote
3answers
223 views

Watchdog errors with location = http://default/index.php

Looking through recent log messages, I've got a number of errors with no referrer listed, and showing location as being http://default/index.php (instead of http://mysite.com/some/page). They all seem ...
1
vote
1answer
972 views

Possible reasons why status report page is blank [duplicate]

I'm using Drupal 7.23 on my test site and since a couple of days the status report page is completely blank (no theme, no menu, nothing). No info shown at all. Other (report) pages are shown without ...
0
votes
2answers
1k views

Watchdog table inserts taking too much of time

On my localhost on Windows 7 sometimes a page load(after all cache clear/cron run) takes even 2 minutes. I've already enabled devel query log generated at the bottom of site showing query ...
1
vote
1answer
130 views

What is the difference between watchdog Location and watchdog Referrer in dblog messages

What is the difference between watchdog Location and watchdog Referrer in dblog messages? An easy example to see the difference would be nice, for example on the node creation/edit they are the ...
0
votes
2answers
1k views

Drush: Watchdog search explained

Can somebody explain how watchdog searching works? I can never get it to locate the log entries I'm looking for. Let's say I have the following watchdog entries: 476722 10/Jun 10:31 notice ...
4
votes
4answers
1k views

Which Drupal log file is available to proof when exactly some content was deleted and by whom?

Somebody claimed that content has disappeared from their site. Of course like magically. No one has deleted it, they said. How can I find out if content was deleted and by whom? Do I have to set up ...
1
vote
1answer
159 views

Why are the Recent log messages not shown within admin/reports?

The usual log reporting option "Recent log messages" is not showing up under 'admin/reports' (in the admin menu). Any idea what might be causing that? Is there a module that provides this ...
2
votes
3answers
800 views

Database log details page blank

We're having a problem with our log detail page (/admin/reports/event/XXXXXX): As you can see, the content is blank. There are no apparent errors in the Apache logs. View source shows that the ...
0
votes
1answer
79 views

In Drupal 7, what events are logged?

I'm looking for a list of the events that Drupal 7 logs via watchdog. The question I'm trying to answer for a colleague is this: "What logging Drupal is capable of, specifically related to security, ...
2
votes
1answer
497 views

Help With Audit log Setup

I'm setting up an audit log for a large network of Drupal 7 sites with dozens of editors and 5 developers. These events are already covered: Content Create, Content Update, Content Delete, User ...
3
votes
2answers
470 views

How to call watchdog() outside Drupal

I'm getting used to use the Drupal watchdog() function. It provides me a very simple and accessible way to log events in my code. However, I would like to use the same (or very similar) function in ...
1
vote
3answers
775 views

Suppressing APC cache warning messages in watchdog log

My Drupal-oriented shared webhost recently updated PHP and APC and turned on reporting APC warnings. Now my watchdog log has many, many entries of the form Warning: include() [function.include]: ...
0
votes
1answer
260 views

Multiple “page not found” errors in log

I am getting "page no found" errors in my website log. Maybe it is some bots that search for directories that do not actually exist. I get at least 50-100 daily of these messages. The log says, for ...
0
votes
1answer
248 views

How can I better protect access to all site reports except 'Recent log messages' based on role?

How can I better protect access to all site reports within /admin/reports/ (except for Recent log messages)? I know I can hide it through CSS or disable the menu in management menu, but is there a ...
0
votes
1answer
112 views

Create a log when user join/abandoned in a og group in Drupal 7

I'm creating a log with several actions in drupal. I need register in a custom log when a user requests to join a group. Then I need register that the user has joined in the group or has abandoned ...
1
vote
3answers
619 views

Create a log of create/delete users in Drupal 7

I'm creating a log with several actions in drupal. I register similar actions with hook_watchdog. /** * Implements hook_watchdog(). */ function MYMODULE_log_watchdog(array $log_entry) { ...
2
votes
1answer
1k views

How can I trace a HTTP 500 (Internal Server Error) at `admin/reports/status`?

I get a HTTP 500 (Internal Server Error) at admin/reports/status I see no errors at admin/reports/dblog How can I trace this?
1
vote
1answer
291 views

Can I create a view of watchdog log entries?

We want to view a more detailed view of watchdog log entries, filtered by module and level and showing the details section in a table. When creating a new view, watchdog logs is not in the list. Is ...
1
vote
2answers
1k views

How cron.php works for watchdog?

I want to truncate the table 'watchdog' once a day. So I heave: to set the maximum rows number from the 'Logging and Alerts' (of Site Configuration) to 1000 create a crontab on my system to run ...
5
votes
2answers
2k views

how to show admin/reports/dblog in terminal ( cli )

While developing I really like a dedicated screen with all the drupal log messages. Working on mac or *nix creating a new terminal window and doing a tail -f on the log file would be really nice. So I ...
4
votes
2answers
545 views

How to hook into adding watchdog entries by other modules?

Is it possible to write some code to intercept the process of adding Watchdog entries and filter them before adding to the log? Or is there a module that allows for watchdog filtering before adding to ...
2
votes
1answer
899 views

Why I can't access to dblog?

Why I can't access "Recent log messages" (via /admin/reports/dblog)? It's not listed in the Admin Menu. And when I try to get there directly (via /admin/reports/dblog), I only see the "Reports", as ...
0
votes
2answers
1k views

Watchdog “404 page not found” entries from spambot guessing urls

Browsing through the watchdog list I found a lot of page not found entries with urls like: http://mysite.com/wp/wp-trackback.php http://mysite.com/phpMyAdmin-2.5.5-pl1/index.php ...
4
votes
2answers
3k views

Unlimitted entries in Watchdog table

I need to set watchdog log entries to unlimitted. Now it clears every time when cron is called. admin/settings/logging/dblog now maximum is 100000, is there any better way to do this.
4
votes
1answer
3k views

Programmatically get a list of all fields?

How to retrieve a list of fields, similar to what is available at admin/reports/fields, but so that I can have them in an array that I can stuff in a select dropdown.
0
votes
1answer
274 views

Why different available updates in Drush to admin/reports/updates?

e.g. in the GUI, I'm told (after running admin/reports/updates/update) that I can update 10 modules. But drush rf; drush up tells me that only three updates are available. Specific example: the GUI ...
0
votes
1answer
640 views

Server IP Address in Drupal PHP Status

How does one get the server IP address of the server you are on to appear at http://examplehost.com/admin/reports/status/php -- at the very bottom ? I keep getting 127.0.0.1. This is on two web ...