Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    They are deleted by WP (it flushes the whole plugin directory before installing the update). But NF will save a copy to the DB and restore it afterwards.
    Did you update it manually or was it updated automatically by WP ?

    Thread Starter Michael

    (@mkalina)

    1. NFW-Support is superfast! (wow!)
    2. I did an automatic upgrade. (Click update, let WP do its magic.)

    Plugin Author nintechnet

    (@nintechnet)

    That’s weird. Normally it will compress and backup the log to the DB in a ‘nfw_tmp’ temp row inside the ‘wp_options’ table, then will restore the log and the stat file right after the update:
    -ninjafirewall/log/firewall_YYMM.php
    -ninjafirewall/log/stats_YYMM.php

    Then, it will delete the ‘nfw_tmp’ row.

    We have about 2 dozens of sites running it for testing purpose and I just checked and saw that all of them had their log restored.

    Do you see any ‘nfw_tmp’ row left in your ‘wp_options’ table?

    Thread Starter Michael

    (@mkalina)

    I have the files – from 2014-08 only. And wp_options does not have a nfw_tmp-row…

    Plugin Author nintechnet

    (@nintechnet)

    I think I misunderstood your issue: the current month log was saved (2014-08) but the previous month(s) log(s) were deleted, it that what you mean?

    Only the current month log is saved because WP deletes all files and it is a pain to manage. We are thinking of the way to preserve all logs. Most security plugins log to database but that is crazy and awfully slow.
    Probably we’ll use a directory outside the plugin folder but it has to be safe and protected.
    That’s on our to-do list.

    Thread Starter Michael

    (@mkalina)

    I think I misunderstood your issue: the current month log was saved (2014-08) but the previous month(s) log(s) were deleted, it that what you mean?

    Kind of. After the plugin, 2014-07 was deleted. 2014-08 is there, but it starts with the date I updated the plugin.

    Probably we’ll use a directory outside the plugin folder but it has to be safe and protected. That’s on our to-do list.

    Awesome. Can we have a “download log” or “send current log to admin” button or something similar? I would not mind having them sent to me every, say, week or so…

    Anyway. Thanks for your help!

    Plugin Author nintechnet

    (@nintechnet)

    Adding a download link would be a good idea, I put this on the to-do list!

    I am not sure about sending logs by email tough, because some very busy sites/multi-site have huge logs (dozens of MBs).

    Thread Starter Michael

    (@mkalina)

    Thanks. If you are interested, I would like to send some feedback on using NF. – Where to?

    Plugin Author nintechnet

    (@nintechnet)

    You can use the helpdesk for that purpose.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Logs deleted after update?’ is closed to new replies.