FGT, the Flexible Graphing Tool is a cgi for producing statistics based on any data-set. It is intended to be used for summarised data, taking up far less space than the original logs.
Naquela will analyse your BIND 8 or 9 query logs (they're easy to setup). It can split results by domain asked for, by originating IP, by day, by hour, whatever you want.