In this tutorial, you will learn how to manage and clean the Umbraco 6-7 logs using a plugin called FAML.
I work with a variety of clients. Every company will have its own IT security policies vary greatly. Some clients are happy to give me full keys to the castle and give me access to the RDP or a full FTP to the production site. Other clients will refuse to give ma any access to the production box as its deemed to big a risk. In these instances how do you manage the logs?
When the Umbraco log gets too large it can really affect the performance of the site really badly. One client had not cleaned the logs in 4 years and their site was grinding to a halt. Their IT team estimated it would take them several months before they could get around to looking at the issue. How do you fix the broken site today in those instances?
The option I came up with was to use F.A.L.M Housekeeping - by Adriano Fabri. F.A.L.M. provides several features that Umbraco doesn't to help you organize and de-clutter your Umbraco environment. Some of the features provided by F.A.L.M. include removing leftover media items for pages that have been deleted, removing back-office users, clearing content item versions, and the all-important viewing of the deleting Umbraco log events.
How To Install FAML
You can install FAML through the 'Developers section in the backend. I'm going to walk through how to manually install a package. I prefer this approach as I like to have a copy of the modules zip with the right version in source control. You can also use the 'Umbraco Package Repository' if you prefer.
From the 'Developer' section, go to 'Install local package'. From here you will be prompted to upload the FAML module from your PC. To get a hold of the file, go over to Falm HouseKeeping from Umbraco.org.
Click the 'Load package' button
Agree to the T&C's, hit the 'Install' button and then grab a coffee and wait for Umbraco to install the module for you.
After F.A.L.M has installed, in the 'Developer' section, you should now see a 'FALM Housekeeping' area. If you expand it and look in the 'Logs' -> 'Cleanup Logs' page, you can filter which logs you want to delete. After you wipe your log files your database will start to decrease in size, all without any SQL access :)
In every company IT policies are different. In some instances, it's easier to make use of modules and out of the box functionality than to get access to live servers, or change IT policies. If you want to have a small and clean Umbraco database, then I suggest you install F.A.L.M Housekeeping in order to clean the log files yourself.