Jump to content

Clean Logs from Database


JackRabbit

Recommended Posts

I simply want to clean my database up and the cron job task logs and the modules log are taking 700mb of space in my db. lines like this:

(128726, 'Jobs Executed', 23, 'RunJobsQueue.executed', '0', '2019-04-24 13:50:04', '2019-04-24 13:50:04'),

How can I clean these out of my database, is there any reason I should keep them?

Edited by JackRabbit
Link to comment
Share on other sites

Utilities > System > System Cleanup. Here you can prune Activity Log deleting old records.

28 minutes ago, JackRabbit said:

is there any reason I should keep them?

Well, bad things happen and Activity Log can be very helpful to determine what went wrong. I usually keep all records. If the size of tblactivitylog becomes too big, I tend to delete records older than 3 years.

Link to comment
Share on other sites

9 minutes ago, Kian said:

Utilities > System > System Cleanup. Here you can prune Activity Log deleting old records.

42 minutes ago, JackRabbit said:

The Activity log is different from the Module log. 

And I just found the answer here, Brian responded to a similar post which I missed before posting here:

 

Link to comment
Share on other sites

Quote

System Module Debug Log

This module debugging tool can be used to identify and resolve problems communicating with remote API systems. It will record and display the raw API data being sent to, and received back from the remote system. Logging should only ever be enabled for testing, and never left enabled all the time.

I should have left Module logging off. No wonder my database was so big.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated