How to query the Database logs and create summary reports and/or charts of them? Is there a module for querying and creating summary reports of the Database logs?

I need something that can create an equivalent of SQL Group by queries on the Database logs, eg, group by type, severity, count, IPs etc, and create views and possibly graphs on them.
The Views Watchdog module might be useful.


  The Views Watchdog module extends the Views module and allows to
  create customized lists (pages, blocks, feeds) of watchdog entries.


Combine it with the Charts module and a bit of custom code and you should be able to get a wide array of reports.