0

1) go to magento root then in shell/ directory

2) execute "php -f log.php status" (in my case Data size is 150 MB)

3) execute "php -f log.php clean"

4) execute again "php -f log.php status" for checking the cleaning action. (it should show a decreased size from 150 MB, but it doesn't.

Well I truncated manually all the tables inside the databases and checking again the status it is decreased to 164 kb. This is a bug, this file is not cleaning the log tables. By the way I already reported in Bug List.

Thank you.

  • Do you see any message after third step? – SeStro Jan 2 '16 at 19:23
  • there is no error message after step 3. – ADDISON74 Jan 2 '16 at 20:03
  • You should see "Log cleaned" message. If you don't see it, it means that script wasn't executed. Is there anything in error logs? – SeStro Jan 2 '16 at 22:05
  • I get "Log cleaned". But checking the status it is the same. There are no errors in any log (php or magento). Update I tried to use log.php clean --days 2000, but still no changes for - log_visitor - log_visitor_info - report_viewed_product_index - report _event I think I will make my own script in order to truncate correctly these tables. In my opinion this is a Magento issue. – ADDISON74 Jan 3 '16 at 13:17
0

Try this answer which worked for me: Log Cleaning does not work

php -f log.php -- clean --days 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.