How to restore or preserve Site Statistics
Purpose
You've enabled the Viewing Site Statistics to track global, space, and site activity and you'd like to preserve or restore them.
Note that this feature will be removed in Confluence 8.0. For more information, see CONFSERVER-57612 - Plans to end support for Usage Stats
Solution
The usage data is stored in its own Lucene index which is located in <confluence-home>/index/plugin/usage
. To restore the data you'll need a copy of it, e.g. from a backup or a production instance:
- Stop Confluence
- Copy the
<confluence-home>/index/plugin/usage
from the backup to the production instance- If you're copying from a production instance, ensure that instance is stopped as well
- Go to > General Config > Content Indexing > Rebuild
You should now be able to see the restored site statistics