12

How do I view the watchdog logs that are created? Is there an interface to view them with, or are the logs stored somewhere on the filesystem?

13

Both Drupal 6 and Drupal 7 put the viewable version of watchdog logs at /admin/reports/dblog. The core database logging module needs to be enabled, and users who want to view them need the access site reports permission. The actual database table is watchdog.

  • Thanks! That was it, although for some reason my reports were under 'Recent log entries'. – kylex Oct 24 '11 at 18:35
  • Yeah, "Recent log entries" is the menu title for the path /admin/reports/dblog. You can see all of this implemented in modules/dblog/dblog.module in dblog_menu(). – mpdonadio Oct 24 '11 at 18:50
4

You can use the Drush watchdog-show e.g.:

drush watchdog-show --tail

More info: http://drushcommands.com/drush-5x/watchdog/watchdog-show

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.