Drupal Error Log File Location
Contents |
all over the world. Join today Community Documentation Community Docs Home Develop for Drupal Theming Guide Glossary Contribute to Docs Database logging: viewing log messages Last updated drupal config file location July 18, 2016. Created on December 7, 2007.Edited by knretaleato, batigolix, dankoB, LeeHunter.
Drupal Header File Location
Log in to edit this page.About The Drupal core module Database logging monitors your system, capturing system events in
Drupal .htaccess File Location
a log to be reviewed by an authorized individual at a later time. Before Drupal 7 this module was called Watchdog. This is useful for site administrators who want a quick
Drupal 7 Error Log
overview of activities on their site. The logs also record the sequence of events, so it can be useful for debugging site errors. The log is a list of recorded events containing usage data, performance data, errors, warnings and operational information. Administrators should check the Drupal core report on a regular basis to ensure their site is working properly. Viewing log messages To view drupal write to log the log, navigate to the Recent log messages page (http://example.com/admin/reports/dblog) On the Recent log messages page, click Filter Log Messages Select one or more categories from the Type and Severity columns. Hold down the Ctrl key to select more than one item. Click Filter To clear the filters click Filter Log Messages and click Reset. Viewing log messages when the site is down To view the log messages when the site is down you need the core syslog module or drush. The drush command to see log messages is drush wd-show. Check drush help wd-show for uses of the command. A particular useful way of using wd-show is with the --tail option: drush wd-show --tail. Configuring the log Navigate to the Logging and Errors configuration page (/admin/config/development/logging) In the Errors and Messages section, specify whether messages will be displayed. In production environments, this is generally set to None. In the Database Log Entries to Keep field, select the number of log entries to retain in the database. A cron job must run for this setting to be applied. Watchdog: monitor your site ‹ Drupal 7: Installation of CKEditor
2015 by William Hetherington Tail is command for Unix and Unix-like systems (like OS X) that allows you to take a drupal configuration peek at the contents of the end of a file. From the joomla error log manual page: "tail - output the last part of files." Tail can be really useful for debugging purposes, or wordpress error log for taking a look at the recent access logs from your Drupal setup. Tail can be particularly useful in a production environment when you may not have PHP error reporting enabled, https://www.drupal.org/documentation/modules/dblog and need to find the cause of serious errors with your Drupal site. But this isn't just for Drupal sites. You can use Tail on any text file on your system. This tutorial is based on the free Tail - Command Line Debug video from our Command Line Basics series. Prerequisites You know how to access a Drupal site via the command https://drupalize.me/blog/201506/using-tail-debug-drupal-sites line (using Terminal or similar program). It can be installed either on a local site or a remote server that you know how to access via ssh. You know which web server you're running Drupal on. Assumptions If you are running Apache as a web server on Debian or Ubuntu, or OS X, your log files will likely be located in the /var/log/apache2/ directory, and their names will likely be: access.log and error.log, although depending on your system configuration, this may be different. For example, if you are running MAMP, your log files will be located in /Applications/MAMP/logs. If you're not running one of the operating systems I just mentioned, or Apache, check your web server's documentation for your OS to determine your default log location. For the purpose of this tutorial, we will be assuming that the access.log and error.log are located in /var/log/apache2. As mentioned above, this may be different on your system. Running the Tail Command Here's an example of how to use the tail command to view the last bit of Apache's access log: tail /var/log/apache2/access.log Running this command will
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://drupal.stackexchange.com/questions/135292/how-can-i-view-my-log-files-via-ssh more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Drupal Answers Questions Tags Users Badges Unanswered Ask Question _ Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up error log and rise to the top How can I view my log files via ssh? up vote 0 down vote favorite I currently cannot access http://example.com/admin/reports/dblog as I cannot authenticate as an admin as my page is getting a 500 error. I wonder if there is an actual location on my production server where Drupal errors are logged. 7 ssh share|improve this question edited Sep 10 '15 at 8:07 drupal error log kiamlaluno♦ 66.5k897192 asked Oct 29 '14 at 18:52 Thalatta 1215 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote If you have drush set up, you can use drush watchdog-list to look at the items logged to watchdog. If you don't have access to drush, but your DB is up and running fine, you can always query the watchdog table with Select * from watchdog; From personal experience, you might want to check your apache error logs as well to see if those hold anything that can help. share|improve this answer answered Oct 29 '14 at 19:45 Jance 2,360729 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged 7 ssh or ask your own question. asked 1 year ago viewed 942 times active 1 year ago Related 2How can I use the logged in user's group ID as a