OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: giovanit on November 04, 2021, 06:29:45 PM

Title: Reports age
Post by: giovanit on November 04, 2021, 06:29:45 PM
My reports are only shown for the last 2 days. I want to change it to 30 days, I didn't find the configuration in the documentation.
Title: Re: Reports age
Post by: sy on November 04, 2021, 06:43:32 PM
Hi,

It is on the Configuration - Reporting&Data - Reports Data Management - Maximum number of days to store reporting data.
Title: Re: Reports age
Post by: giovanit on November 04, 2021, 06:48:58 PM
A few days ago I made this change and it didn't work. Should other settings be enabled?
Anonymize local IP address:
Anonymize remote IP address:
Do not perform DNS Enrichment:
Do not perform User Enrichment:
Title: Re: Reports age
Post by: sy on November 05, 2021, 05:41:11 PM
Hi,

Maximum number of days to store reporting data setting is enough. Please send a bug report by selecting Zenarmor logs checkbox.
Title: Re: Reports age
Post by: annoniempjuh on November 05, 2021, 05:42:02 PM
Quote from: giovanit on November 04, 2021, 06:48:58 PM
A few days ago I made this change and it didn't work. Should other settings be enabled?
Anonymize local IP address:
Anonymize remote IP address:
Do not perform DNS Enrichment:
Do not perform User Enrichment:

not needed, what @sy already wrote, change the "maximum number of day to restoring data" to your like and hit 'save settings'.

and check if your reports settings are set to your like -> reports > reports settings > reports interval
(reports settings are found at the upper right corner (3 gears)
Title: Re: Reports age
Post by: giovanit on November 09, 2021, 03:49:49 PM
Quote from: sy on November 05, 2021, 05:41:11 PM
Hi,

Maximum number of days to store reporting data setting is enough. Please send a bug report by selecting Zenarmor logs checkbox.
It took me a while to respond because I was waiting for data collection after changing the number of days again. Really only the reports of the current day are displayed.
I'm forwarding the information through the bug report.

Title: Re: Reports age
Post by: tracker on November 24, 2021, 08:07:54 PM
I was following this post as I thought something was amiss with Sensei on a couple of boxes I control.

All of a sudden, data would be missing. Instead of the configured 30 days, I would just have a couple of days of data, both on the dashboards and the drilldown.

Thinking that some corruption happened on the databases after the upgrade to 21.7 (as I noticed it just a couple of days after), I erased all the reporting data on 3 boxes and made a note of the day/time.

At the same time, I have also scheduled a weekly reboot Sunday morning to clear the nasty use of the swap that Sensei has developed in the last versions.

Today, I checked again, and to my surprise instead of having data since the erase, I only have data since the reboot, and made me realize that the problem was not the upgrade, but the reboot.

This problem might predate the 21.7 upgrade, but I never associated it to a reboot.

Does that make sense? Am I doing something wrong?

How can I help troubleshoot this?
(Bug Report sent from all three boxes)
Title: Re: Reports age
Post by: sy on November 25, 2021, 04:28:22 PM
Hi Tracker,

Reboot couldn't be caused this problem. We are looking into your logs and get back to you.