Keep statistics longer than 1 day

I notice that the statistics automatically reset every night at midnight. Is there a way I can adjust this time to say 1 week or 1 month?

Enter sudo nano /etc/cron.d/pihole
Look for this line 58 23 * * * root /usr/local/bin/pihole flush

Examples:

1 2 3 4 5 root /usr/local/bin/pihole flush

1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])

Put * in place of what you're not specifying.

Press Ctrl + X and then Y to append changes, and enter. Easy.

I'd advise against changing this because loading the admin page will get laggy. Might even put more stress on your Pi. Up to you, though.

Like MoistGoat said, you can do that, but once the log file gets too big, the Web interface slows down. This is why we are planning on flushing the log daily but sending the stats to a database before that happens.

Thanks! I'm running on a new Pi3 so I hope the extra horse power can keep up with a weeks worth of logs.
I will have to put in a little trial and error and find what works!
Thanks again.