best way to get a topX list of most used queries?

Hi,

What is a recommended way to get a list of most-used queries?

Should I log and egrep and sort the logs, or is there a way to get this data via stats or the cache?

Thanks.

Hi Hans-Cees,

This information is not available via stats. You can indeed log this
information (see the log-queries unbound.conf setting) and use grep to
extract this, or use dnstap to export the information.

-- Ralph