How to exclude logging of specific 404 errors from the WordPress activity log

You are here:
  • KB Home
  • Audit Trail
  • How to exclude logging of specific 404 errors from the WordPress activity log
Back

The WP Security Audit Log plugin keeps a log whenever a WordPress user requests a non-existing page and generates a HTTP 404 error. While this is a useful functionality there might be cases in which you do not want to keep a log when a specific non-existing URL is requested. For example when you change the the path of the WordPress login page (wp-login.php), bots will automatically generate a lot of HTTP 404 errors, when requesting this page.

To exclude the logging of specific HTTP 404 errors follow the below procedure:

  1. Navigate to the plugin settings by clicking on the Settings node,
  2. Click on the Exclude Objects tab,
  3. Specify the full URL in the Exclude Non-Existing URLs setting placeholder as per the below screenshot.

Exclude HTTP 404 errors from the WordPress activity log