Title: Clear logs?
Last modified: June 25, 2020

---

# Clear logs?

 *  [ai4k Web Design](https://wordpress.org/support/users/soylaostia/)
 * (@soylaostia)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/clear-logs-6/)
 * Hi, thank you for such a great plugin.
 * My question is: will you put a clear logs button again? Maybe it is not necessary
   to have all logs in the database…
 * Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [beardedginger](https://wordpress.org/support/users/beardedginger/)
 * (@beardedginger)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/clear-logs-6/#post-13035289)
 * Hi,
 * There are no plans to bring back the clear logs button at this time. You can 
   set the number of days to keep log entries in the Global Settings.
 * Once a day, iThemes Security will automatically clear log entries once they reach
   the date of expiration.
 * So, if you set the days to keep the logs to 30, any log entry recorded 31 days
   ago will be removed.
 * Thanks,
 * Matt
 *  [Luke Cavanagh](https://wordpress.org/support/users/lukefiretoss/)
 * (@lukefiretoss)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/clear-logs-6/#post-13133358)
 * I would take a look at this plugin.
 * [https://wordpress.org/plugins/log-cleaner-for-ithemes-security/](https://wordpress.org/plugins/log-cleaner-for-ithemes-security/)
 *  [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/clear-logs-6/#post-13198330)
 * Multiple requests have been issued from many customers using either the free 
   or pro version of this plugin to bring back the Clear Logs button.
 * It’s quite a shame that iThemes does not listen to its customers. iThemes has
   yet to demonstrate why it was removed.
 * Until iThemes decides to bring it back (think Sales), I highly recommend using
   the plugin recommended by [@lukefiretoss](https://wordpress.org/support/users/lukefiretoss/).
   Very useful and does not impact website speed.
 * As an option, you can also use a Real Cron instead of WP Cron to clean (or “truncate”)
   the database tables listed below at the time interval you designate. Click [here](https://wordpress.org/support/topic/php-snippet-to-delete-logs-after-x-days/)
   for details. Method works like a charm for us. Every 12 hours, below tables are
   cleaned. Our website runs great. No security issues.
 * The Database Tables that we clean (or “truncate”) every 12 hours are:
 * wp_itsec_dashboard_events
    wp_itsec_distributed_storage wp_itsec_lockouts wp_itsec_logs
   wp_itsec_temp
 * The Real Cron method may appear a bit complicated at first, but once set up, 
   you’ll be glad you did. It’s a “fire and forget” method that will bring you peace
   of mind.
 * Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Clear logs?’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [ithemes](https://wordpress.org/support/topic-tag/ithemes/)
 * [Logs](https://wordpress.org/support/topic-tag/logs/)

 * 3 replies
 * 4 participants
 * Last reply from: [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/clear-logs-6/#post-13198330)
 * Status: not resolved