UniFi - How to configure Statistics Retention

Learn how to set up the Statistics Retention in UniFi

Alex Lowe

Last updated: October 9, 2026

Running the UniFi Controller can provide a lot of benefits, such as remote access, DPI stats with the USG and UXG and lots of statistics for clients and UniFi devices.

If you want fast and reliable UniFi hosting, check out HostiFi with expert support, regular backups, managed updates and prices from $19 per month.

To learn more about our hosting plans, create an account or book a free demo to get started.

Contents

Why would you need to increase the statistics storage?

What statistics can you store?

How to enable Statistics Retention

Why would you need to increase the statistics storage?

For example, on a test HostiFi server - everything set to auto and with this US-8-150W switch which has been online for around a month, the CPU and RAM stats only go back for a few hours.

Increasing the logging would make it possible to go back in time further and see what has happened to your devices.

What statistics can you store?

UniFi can store a lot of information with the most recent versions of the application. If you have a USG or UXG, you will be able to view information and logs on DPI, IPS and IDS as well as see what bandwidth and apps a specific client has used over time.

UniFi also has an activity monitor to show when a client roamed to a new BSSID.

How to enable Statistics Retention

These settings can only be configured from the new user interface within UniFi. As of more recent versions of the application, the ability to change it from the legacy user interface has been removed.

Learn how to change between the user interface versions here.

First, log into your UniFi Controller and click on 'Settings'

Next, click on 'System'

Then, scroll down right down the bottom of the page until you see the section 'Other Configuration'

To customise the retention time frames, untick the 'Statistics Retention' checkbox

The following options will now be available, you can customise it to how much data you need to collect.

HostiFi

HostiFi provides hosting for Ubiquiti hardware and software, with servers for UniFi and UISP as well as professional network services with HostiFi Pro.

Video

About HostiFi

HostiFi provides hosting for Ubiquiti software platforms, with servers for UniFi and UISP. We also offer network consulting, with HostiFi Professional Services.

Get the Ubiquiti Top 20

Each month our team sifts through Ubiquiti news and content from around the web and delivers 20 of our favorite links to your inbox.

View recent issues

No spam. Unsubscribe anytime.

🤩

Discovered 3+ things that I did not know and will have a material impact on my business.

Newsletter Subscriber

🤩

All the info I want/need in a single clean thread! Perfect!

Newsletter Subscriber

🤩

Providing super valuable information to keep the community in the know. Awesome links page, Thank You.

Newsletter Subscriber