drupal 8

Showing the User Agent in the Drupal 8 dblog

If you've just done a site restructure or migration to Drupal 8, you will inevitably need to redirect pages from your old URL scheme to however you've structured the new site.  In Drupal 8, the easiest way is to monitor the database log, filtered with "page not found".

Many of these hits however will come from bots scanning your site.  But to tell whether it's a random bot, Google, or likely to be a real user, we need to inspect the User-Agent header.  This means digging into your log files.  Wouldn't it be more convenient if you had a quick & easy way to see these details?

Tags