How to flush your error logs in Drupal 7

When working in Drupal 7, error messages collect in error logs. You may want to clear out, or flush, these logs from time to time. Follow the instructions below to learn how to flush your error logs in the Drupal admin interface.

Flushing error logs in Drupal 7

  1. Log into your Drupal 7 Admin panel.
  2. Once inside the admin area, locate the Reports menu option in the top menu bar and click it.
  3. click on recent log messagesYou are now on the Reports List screen. Find and click on the Recent Log Messages option.
  4. click clear log messages buttonFrom here you will see a couple of options for dealing with Error Logs, click on the Clear Log Messages link and the section will expand. You will a gray Clear Log Messages button. Click that to clear the error message log.
  5. success messageYou will be met with a success message once the error logs have been flushed.

Was this article helpful? Join the conversation!