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
votes
1answer
10 views

Store events for later retrieval

I'm sending out emails on certain events (e.g. new article, or in a cronjob if a certain node hasn't been updated in the last weeks). Now, I want to track whether these emails get reacted upon. I can ...
3
votes
2answers
64 views

How to execute a function every 3 months?

What's the proper way to execute a function every 3 months? Watchdog variables don't seem to be available after a certain time. I could create another table to insert the execute function date to ...
1
vote
2answers
23 views

How do I print line breaks and HTML in a watchdog message?

I am trying to log emails to watchdog for testing in my local dev environment. function MYMODULE_mail_alter(&$message) { // First: Prevent the mail from being sent. $message['send'] = FALSE; ...
0
votes
1answer
31 views

What to do for “Login attempt failed for admin.” and “Access denied” to path admin?

In Watchdog, I started seeing several entries like this: Login attempt failed for admin. And access denied 2016/04/04 - 15:06 admin These are generating a fair number of log entries. The ...
1
vote
1answer
13 views

When an image shows up in “page not found” in Watchdog, how to find the content containing the image link?

I disabled the countryicons_shiny module on my site, and now I'm getting some errors in Watchdog showing that the images weren't found: Details Type page not found Date April 3, 2016 User ...
0
votes
3answers
46 views

Solve “Cron run failed” without Watchdog

Some years ago i wanted to turn off watchdog because it's memory and db consumption, but today i need info about why my cron isn't running because need to use Search module from now? Trying to run ...
1
vote
1answer
23 views

Watchdog message is not proper

Used sqlquery to get the error log messages from watchdog table. Getting message like, 'Sending mail to: @to'. '%type: !message in %function (line %line of %file)' (which seems not relevant). ...
0
votes
1answer
21 views

Deletion of some watchdog messages with subquery

What i want is to delete from watchdog the first 20 messages with type as 'blabla' what i did untill now is: $query = db_select('watchdog', 'w') ->fields('w') ->condition('type', ...
0
votes
2answers
118 views

How to export the log messages in .csv file?

How can I export the log messages (Site Reports-->Recent Log Messages) in a .csv file?
1
vote
0answers
18 views

Why is a blocked user showing up in my watchdog logs?

Upon checking my error logs in watchdog today, I discovered an IP address that tried to go to a (non-existent) admin page. I have already blocked this IP and when I go to ...
0
votes
1answer
35 views

Watchdog messages and string replacement

Hello I would like to know which of the following ways (or some other) of logging messages is better and why. I am writing lots of .install files since I create content types and fields ...
0
votes
0answers
13 views

Use Rules To Unpublish Imported Node If Feeds Runs Into Error

I am using the Watchdog rules submodule from Logging and alerts to create a rule that will unpublish a node if the feeds importer runs into an error on that specific node during import. My events and ...
1
vote
1answer
28 views

watchdog truncate or delete

Watchdog table has become so big that, truncate cascade or delete command in the table is not working at all. The moment the server encounter a DELETE command in watchdog, it gets busy in executing ...
1
vote
2answers
26 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
25 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
51 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
31 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
77 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
46 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
74 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
49 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
23 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
34 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 = ...
2
votes
1answer
22 views

Error entries in Watchdog duplicated dozen and hundreds of times

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
68 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
183 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
133 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 ...
1
vote
2answers
305 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
20 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
56 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
71 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
1answer
475 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
137 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 ...
3
votes
2answers
117 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
198 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
232 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
1k 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
143 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
2k 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
227 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
878 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
535 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
486 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
795 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
278 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
252 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 ...