Use this tag for questions about the 'Watchdog' module, and its related contributed modules. This module monitors your system and records system events in a log you can review. This helps you get a quick overview of activity on your site.

learn more… | top users | synonyms

0
votes
1answer
15 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 ...
1
vote
2answers
15 views

How do I figure out what module is logging to Drupal Watchdog

Some module is logging into the green drupal_set_message() area on at the top of the admin pages ... it seems to be logging a node out, so it pushes the content down to the bottom of the page. I would ...
0
votes
0answers
16 views

Getting memory error (APC?) when trying to run a cron queue

I am trying to run a cron queue with a large amount of items. I am getting this error repeated dozens of times in watchdog: Warning: require_once(): Unable to allocate memory for pool. in ...
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
19 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 = ...
0
votes
0answers
35 views

join two tables and take 20 distinct values without the use of “distinct()”

how i can join 2 tables and keep the first 20 different values in the table?I create a table with no values on module installation: function distinct_schema() { $schema['distinct'] = array( ...
0
votes
0answers
15 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, ...
0
votes
1answer
41 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
70 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, ...
0
votes
2answers
184 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 ...
3
votes
3answers
1k 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 ...
2
votes
0answers
355 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
103 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 ...
1
vote
2answers
73 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
151 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
201 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 ...
0
votes
2answers
924 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
107 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 ...
1
vote
3answers
636 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
72 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
425 views

Drupal 7 Audit log

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
441 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
739 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
230 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
107 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
566 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) { ...
0
votes
1answer
235 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 ...
4
votes
2answers
463 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
756 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.
3
votes
1answer
330 views

What exactly is watchdog?

I am aware of the watchdog table in the Drupal database, but I am not sure how to use it effectively. Is it simply a message function that adds to the table like a stack in the database for ...
1
vote
1answer
3k views

watchdog table grows too big too fast

On a rather busy D6 site, I need to truncate watchdog table very frequently, since it grows at about few Gigabyes per day. On the other hand I can not disable access logs to avoid the table's ...
1
vote
1answer
750 views

How to write PHP warnings and notices to error_log, not db_log (watchdog)? [duplicate]

I'd like to configure Apache & Drupal so that PHP Notices and Warnings are logged to php.ini's 'error_log', but never to dblog/watchdog. Beyond that, dblog should log all the other stuff that it ...