statistics queries get deleted | Community
Skip to main content
Level 2
October 16, 2015
Solved

statistics queries get deleted

  • October 16, 2015
  • 3 replies
  • 928 views

Our statistics queries tracking (/var/statistics/queries/) works for the day of, i'll see newly created folders for each search that happened that day and it's properties...  but in the next day or two when i look, the stats for the previous day are gone.

Does anyone else have this happening to them?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Out of the box it cleans up every day based on property value /var/statistics/@lastCleanUpDate & is expected. The service responsible is http://localhost:4502/system/console/configMgr/com.day.cq.statistics.impl.StatisticsServiceImpl
 & there is no configuration option.  Only workaround if you do not want to clean is keep updating the property lastCleanUpDate.   BTB clean up is done for a purpose & what is your use case?

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Out of the box it cleans up every day based on property value /var/statistics/@lastCleanUpDate & is expected. The service responsible is http://localhost:4502/system/console/configMgr/com.day.cq.statistics.impl.StatisticsServiceImpl
 & there is no configuration option.  Only workaround if you do not want to clean is keep updating the property lastCleanUpDate.   BTB clean up is done for a purpose & what is your use case?

quo-soAuthor
Level 2
October 16, 2015

i guess for us we were keeping the stats so we can have a report on the queries every month.  I don't necessarily understand the point of having the data cleared every day.  I'm not too sure what best practice would be for something like this... would it be that you setup a workflow launcher to reverse replicate this data back to author, but does it clean it up daily there as well?

Sham_HC
Level 10
October 16, 2015

Sitecatalyst helps & preferred for your case. You do not need to configure reverse replication, you can configure in publish to post stat to author directly. Yes in author also cleans dialy & unfortunately no configuration option.