Bad Behavior
How do I clear Bad Behavior logs? (3 posts)

  1. Secure-IT
    Posted 5 years ago #

    If I view the logged events in Bad Behavior (
    Tools > Bad Behavior ), I have no way to clear the logs. Can someone explain how they've been able to clear these logs? I did see this post but it was from a year ago. Does anyone know if it's still the case? ( http://wordpress.org/support/topic/plugin-bad-behavior-cleaning-log )

    Wordpress 3.1.2
    Bad Behavior 2.0.43


  2. treydock
    Posted 5 years ago #

    The logs are stored in the mysql database. The only way I know of how to clear them is by clearing the wp_bad_behavior table.

    Backup your DB first!

    Then run:

    TRUNCATE TABLE wp_bad_behavior;

    That basically drops and re-creates wp_bad_behavior table.

    - Trey

  3. error
    Plugin Author

    Posted 4 years ago #

    Bad Behavior automatically prunes the log entries older than 7 days. If you find this is still too much data, try disabling verbose mode. If you find that 7 days of data is too much even without verbose mode, you can just disable logging in Bad Behavior's options.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Bad Behavior
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic