antedebaas / Viesti-Reports

DMARC & SMTP-TLS Reports processor and visualizer and BIMI file hoster
https://hub.docker.com/repository/docker/antedebaas/viesti-reports/general
GNU General Public License v2.0
75 stars 16 forks source link

Question and/or Feature Request: purge logs (automatically or manually) #43

Closed bundyland closed 5 months ago

bundyland commented 6 months ago

Hi Ante,

is there any possibility to purge the logs easily?

If not, do you think it would be possible to create an automatism to purge the logs (for example) every 30 days? Or at least a button which allows purging the logs through the GUI?

Motiv: I don't really see the requirement to keep these logs for an unlimited period of time. To prevent the database from becoming unnecessarily bloated, I prefer to keep these logs just for a limited time.

As always, thank you very much for the great work.

Best regards....

antedebaas commented 6 months ago

i can add a cleanlogs command you could run.

bundyland commented 6 months ago

That sounds wonderful. Thanks a lot.

antedebaas commented 5 months ago

implemented in 1.9.0

bundyland commented 5 months ago

Thank you very much, Ante.

Could you please let me know which exact command I have to run under Docker to get the logs purged?

bundyland commented 5 months ago

No worries. I've found it. It should be:

docker exec -t dmarc-web-1 php /var/www/html/bin/console app:clearlogs

... and it works great. Thanks once again.