• Resolved alaid

    (@alaid)


    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

    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)
  • Do you have any delayed WordPress cron events?

    Thread Starter alaid

    (@alaid)

    Hi,

    No, I have multiple cron events and they all work

    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

    (@shanedelierrr)

    Hi @alaid & @fanny300, are you still having the same issue while using the most recent version of iThemes Security?

    Thread Starter alaid

    (@alaid)

    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

    (@shanedelierrr)

    Hi @alaid, apologies for the delayed response. Would you please enable iThemes Security Debug and check if you can see the purge-log-entries cron listed under Scheduler?

    Thread Starter alaid

    (@alaid)

    Hi,

    If it appears

    purge-log-entries 2022-09-02 12:45:05 (24 horas) daily

    Plugin Support chandelierrr

    (@shanedelierrr)

    @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

    (@alaid)

    Hi,

    Ok, I will be doing the tests and I will inform when I finish if it works.

    Thanks.

    Thread Starter alaid

    (@alaid)

    Hi,

    I did the test following your instructions, there are no changes, it still doesn’t work.

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @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

    (@alaid)

    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

    (@shanedelierrr)

    Hi @alaid thank you for getting back. Could you please try installing this plugin? 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

    (@alaid)

    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

    (@shanedelierrr)

    @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)
  • The topic ‘Clear logs files’ is closed to new replies.