Title: Clear logs files
Last modified: May 12, 2022

---

# Clear logs files

 *  Resolved [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [4 years ago](https://wordpress.org/support/topic/clear-logs-files/)
 * Hi,
 * “Excellent security plugins, congratulations, the best of all”
 * I have configured the “Log only” option because the site generates many log files,
   the number of log files generates many inodes files, that’s why I set them to
   be deleted every 7 days, but it doesn’t work, they don’t rotate when they reach
   10Mb, these files are still generated considerably increasing the inodes.
 * [https://snipboard.io/hVuHgJ.jpg](https://snipboard.io/hVuHgJ.jpg)
 * Because it does not work?
 * I need to please delete the log files so that it does not generate many inodes
 * Thanks.

Viewing 15 replies - 1 through 15 (of 34 total)

1 [2](https://wordpress.org/support/topic/clear-logs-files/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/clear-logs-files/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/clear-logs-files/page/2/?output_format=md)

 *  [Matthew](https://wordpress.org/support/users/atxmatt/)
 * (@atxmatt)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15661352)
 * Do you have any delayed WordPress cron events?
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15686615)
 * Hi,
 * No, I have multiple cron events and they all work
 *  [fanny300](https://wordpress.org/support/users/fanny300/)
 * (@fanny300)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15735067)
 * Hello, i’m french.
 * I have exactly the same probleme since novembre 2021. Before it was ok. In 6 
   month, the itheme security plugin create more than 15 000 000 of files !
    I’m
   in a multi site wordpress, in 6.0 and itheme security 8.1.2 I try to change several
   times the parameters : 90 days, 30 days and 0, the logs don’t rotate. If it was
   possible I would have completely disabled the creation of logs. In one day 50
   0000 files are created.
 * I have crons for different newsletters which work fine, crons which disable pop
   up or post, all it ok.
 * Thanks.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15941222)
 * Hi [@alaid](https://wordpress.org/support/users/alaid/) & [@fanny300](https://wordpress.org/support/users/fanny300/),
   are you still having the same issue while using the most recent version of iThemes
   Security?
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15941752)
 * Hi,
 * I solved it by adding a cron task in Cpanel so that it deletes the last record
   from 7 days ago.
 * “find /home/eldiari1/public_html/wp-content/uploads/ithemes-security/logs -name
   event-log-el-diario-de-guayana\* -mtime +7 -delete >/dev/null 2>&1”
 * But I would like this to work directly from iThemes without the need to create
   the cron task.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15970164)
 * Hi [@alaid](https://wordpress.org/support/users/alaid/), apologies for the delayed
   response. Would you please enable [iThemes Security Debug](https://ithemeshelp.zendesk.com/hc/en-us/articles/360018810613-How-Do-I-Enable-iThemes-Security-Debug-)
   and check if you can see the purge-log-entries cron listed under Scheduler?
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15970445)
 * Hi,
 * If it appears
 * purge-log-entries 2022-09-02 12:45:05 (24 horas) daily
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15970472)
 * [@alaid](https://wordpress.org/support/users/alaid/) could you please try to 
   reset the `ITSEC_Scheduler_Cron` and wait at least 24 hours if it helps? If not,
   please change the days to keep logs, save the settings, reset the scheduler again,
   and see if it resolves after a day. Please let me know how it goes.
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15970598)
 * Hi,
 * Ok, I will be doing the tests and I will inform when I finish if it works.
 * Thanks.
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15981663)
 * Hi,
 * I did the test following your instructions, there are no changes, it still doesn’t
   work.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15986517)
 * Hi [@alaid](https://wordpress.org/support/users/alaid/), thank you for getting
   back. Would you be able to deactivate and delete the iTSec plugin, and re-install
   a fresh copy on your site to see if it helps?
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15986837)
 * Hi,
 * I’ve done this before and it doesn’t fix it. I have installed iThemes Security
   with different themes, settings, hosting, etc on 20 different sites and the same
   thing happens on all of them.
 * Thanks.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15992085)
 * Hi [@alaid](https://wordpress.org/support/users/alaid/) thank you for getting
   back. Could you please try installing this [plugin](https://wordpress.org/plugins/wp-crontrol/)?
   Then, go to Tools > Cron Events > itsec_cron “purge-log-entries” > click “Run
   Now” and see if it clears the retained logs?
 *  Thread Starter [alaid](https://wordpress.org/support/users/alaid/)
 * (@alaid)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15992352)
 * Hi,
 * I did the test and it doesn’t work, only the cron task that I added in cPanel
   is the only thing that works.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/clear-logs-files/#post-15995617)
 * [@alaid](https://wordpress.org/support/users/alaid/) would it be possible for
   you to create a staging site to test if the issue still occurs there while all
   plugins except iTSec are deactivated?

Viewing 15 replies - 1 through 15 (of 34 total)

1 [2](https://wordpress.org/support/topic/clear-logs-files/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/clear-logs-files/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/clear-logs-files/page/2/?output_format=md)

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

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence 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/)

 * 34 replies
 * 6 participants
 * Last reply from: [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/clear-logs-files/page/3/#post-16117454)
 * Status: resolved