The Simple Way To Clear Your Umbraco Logs And Media Without Database Access

I work with a variety of clients and each company's  IT security policies vary greatly. Some clients are happy to give me full keys to the castle with access to everything, other clients lock everything down to the smallest details. For an open-source free platform, Umbraco is a great choice, however, out of the box, it has no inbuilt feature to clear out the constant influx of data to the log database. On a recent project, the Umbraco log was getting quite large (it hadn't been cleaned in over 4 years) and the network team estimated it would take them several months before they could get around to looking at the issue. When you deal with clients that have a dispersed company structure where everyone is only looking out for their self-interests, I find life a lot easier and quicker if you can find processes where your team can be self-sufficient, without having to rely on other departments in order to reach your targets Luckily, like a lot of CMS systems Umbraco provides the ability for third-party modules to be installed into your web project. One of those free modules is called, F.A.L.M Housekeeping - by Adriano Fabri. If you find yourself in a similar IT dilemma, or you just want to add the ability to allow content editors to view and clean the log files within the UMbraco backend, then F.A.L.M is an essential add-in. 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

Like any other Umbraco modules, you can install a module in Umbraco 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. umbraco _faml_1 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 _faml_2 Click the 'Load package' button umbraco _faml_3 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. umbraco _faml_4 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.

submit to reddit

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

Back to top