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?

2 Answers 2

14

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.

2
  • Thanks! That was it, although for some reason my reports were under 'Recent log entries'.
    – kylex
    Oct 24, 2011 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, 2011 at 18:50
5

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

drush watchdog-show --tail

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

1
  • The command worked for me but without the --tail option. Nov 2, 2022 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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