-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep Query Log details across FTL restart #1285
Conversation
…ble and queries view Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
I tried it but it did not really work for me. I got a lot of
But there is no I also queried a test domain which was successfully stored in the database with all information, including reply_typ=4. After a restart, the query log displays |
Signed-off-by: DL6ER <[email protected]>
Thanks for your review, not sure how I missed this. We also have to set the |
Thanks for the update. There are no |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/a-graph-visualizing-response-times-of-forwarded-queries/53320/1 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-ftl-v5-14-web-v5-11-and-core-v5-9-released/53529/1 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/resolve-client-ip-adresses-for-the-long-term-data-section/55655/2 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/add-hostname-of-clients-to-long-term-query-database/50103/11 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
By submitting this pull request, I confirm the following:
How familiar are you with the codebase?:
10
When restarting FTL, it imports history from the database to repopulate the history. So far, this was only possible with a reduced set of variables to keep the database from growing forever. Recent database optimizations #1255 reduced the database size significantly allowing us to store more data in the database.
This PR adds storing all the details necessary for the query log so a restart goes (almost) invisible and without any data loss.
*) almost because some queries may not have been completed due to the forced restart and according service interruption.