Clearing Drupal Logs Without Running SQL
May 11th, 2009 by Xangis
Drupal 6 stores access log info in the ‘watchdog’ and ‘access’ tables. Although you can clear those with an SQL query, there’s an easier way:
1. Go to admin/settings/error-reporting and set “discard log entries older than” to 1 hour.
2. Run cron.
3. Go back to admin/settings/error-reporting and set “discard log entries older than” back to something normal, like 1 week.
This isn’t a full clear, but it will purge most of the search and error message spam.
Leave a Reply
You must be logged in to post a comment.