I am using  Recent messages report (/admin/reports/dblog ) and out of the box I have very nice filtering by Module and by Severity.  I would like to add an option to filter by text in Message column.  dblog entries are not available via views, so I cannot add a view with exposed filter here.

What would be best way to add such filtering in secure way - I guess this will be either extending core or creating a module that will expose dblog/watchdog table to views?

thanks for any pointers!

 

Comments

Hi Irina

I have often wondered this.  I have had Log Filter on my list of possible migrations for a while; this uses a JS library to do the filtering.  I notice on the project page of this module it also points to Better Watchdog UI which goes the Views route.

I think exposing logs to Views might be a more useful approach overall.

Olafski's picture

The Views Watchdog module for Backdrop "extends the Views module and allows to create custom lists of log entries". On Github, there is also a Wiki page with information about available fields, filter criteria, and more.

Thank you, Martin and Olaf!  I had a feeling that there might be something out there already :) 
I will check all three options (I will look at porting modules) and report back which one worked best for me.