Match filter for database table

Is there any filter available to match a pattern for database table column? Please help me out. Can we use grok over here?

How you take data from DB? What output you have after select request?
I mean you need build on your data format.

I am taking data from another filter used to get data from mongo DB. I think the output is JSON.

JSON is good! Use json fillter for logstash, it's perfect solution.