Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log cleaning in DB #7512

Closed
viktor-zhuromskyy opened this issue Nov 22, 2016 · 9 comments
Closed

Log cleaning in DB #7512

viktor-zhuromskyy opened this issue Nov 22, 2016 · 9 comments
Labels
bug report Component: Setup Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed

Comments

@viktor-zhuromskyy
Copy link

According to M2.0 guide at http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-log.html it suggests the way to clean logs in Database, but in M2.1.x there is no such function available under ./bin/magento.

My DB tables report_event, report_viewed_product_index, customer_visitor contain more than a few million entries combined. That is pure cluttering of Database. In M1 there is an option of automatic logs cleaning via cron.

I want to keep up to datу logs in these tables only for past 30 days and no more...

What is the option for M2.1.x?

@Ctucker9233
Copy link

@devdesco-ceo This is a badly needed function for sure, not just for DB, but other logs as well. @magento-team I hope this is in the works.

@viktor-zhuromskyy
Copy link
Author

You bet!

@veloraven
Copy link
Contributor

@devdesco-ceo thank you for your feedback.
Please format your issue description according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.

@iancassidyweb
Copy link
Contributor

Preconditions

1. Install Magento 2.1

Steps to reproduce

1. Login to server via SSH (Magento CLI Version 2.1.2)
2. Run the bin/magento command
3. You will see that no commands are available to clear log tables

Actual and Expected result

Expected result:
When running the bin/magento command I should see the commands for log cleaning 
displayed under the list of available commands.

I should then be able to clear database logs by running the following command
magento log:clean [--days=<clean logs older than>]

Actual result:
No option is available for log cleaning which contradicts the following document.

Resources

Magento Dev Docs - Clean the logs

@iangoh414
Copy link

In need of this badly

@RomanKrut
Copy link

@viktor-zhuromskyy Hello, The GitHub issue tracker is intended for technical issues only. Please refer to the Community Forums or the Magento Stack Exchange site for technical questions.

@Ctucker9233
Copy link

@krutkoroma79911 This should be considered a feature request. One that is badly needed I might add. I don't know how much time I waste just clearing our junk that Magento should have a cron job for at the very least.

@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed and removed Progress: needs update labels Sep 18, 2017
@magento-engcom-team
Copy link
Contributor

@viktor-zhuromskyy, hi, The GitHub issue tracker is intended for technical issues only. Please refer to the Community Forums or the Magento Stack Exchange site for technical questions.

@ibaldonl
Copy link

@magento-engcom-team this is not a technical question but a feature request, it seems to me this issue has been closed erroneously, could you please reconsider? thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Setup Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed
Projects
None yet
Development

No branches or pull requests

9 participants