### Query Logging

The currently configured logging file is ``

Log DNS queries and replies

### Privacy-related database settings

Pi-hole's long-term database is stored at ``

Should FTL load queries from the database on (re)start?
Maximum number of days to keep queries in the database
How long should IP addresses be kept in the network_addresses table [days]?

IP addresses (and associated host names) older than the specified number of days are removed to avoid dead entries in the network overview table.

### Query Anonymization ("Privacy Level")

Specify if DNS queries should be anonymized, available options are:

Show everything and record everything

Gives maximum amount of statistics

Hide domains: Display and store all domains as `hidden`

This disables the Top Permitted Domains and Top Blocked Domains tables on the dashboard

Hide domains and clients: Display and store all domains as `hidden` and all clients as `0.0.0.0`

This disables all tables on the dashboard

Anonymous mode: This disables basically everything except the live anonymous statistics

No history is saved at all to the database, and nothing is shown in the query log. Also, there are no top item lists. Note that this also largely disabled regex capabilities.

The privacy level may be increased at any time without having to restart the DNS resolver. However, note that the DNS resolver needs to be restarted when lowering the privacy level. This restarting is automatically done when saving.