Hi,I raised "Multi-line regular expressions do not work in search and in filters" issue (https://github.com/tstack/lnav/issues/788) but as I got no response there I thought I would ask here. Could we please have this working? It is the single biggest missing feature when working with log files with multi-line entries.
Regards,Piotr Dobrogost
--
You received this message because you are subscribed to the Google Groups "lnav" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lnav+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lnav/ae5d0fa3-ed79-4435-881b-8185753a28bbn%40googlegroups.com.
Hi,I raised "Multi-line regular expressions do not work in search and in filters" issue (https://d/tstack/lnav/issues/788) but as I got no response there I thought I would ask here. Could we please have this working? It is the single biggest missing feature when working with log files with multi-line entries.Regards,Piotr Dobrogost
Hi Piotr,I've pushed changes for using a SQL expression to do filtering (asmentioned in https://github.com/tstack/lnav/issues/568). Since theSQL integration gives you access to the full log message youshould be able to use a command like the following to accomplishwhat you want::filter-expr :log_text LIKE '%<some-tag>%<some-subsequent-tag>%'I think this should satisfy your other request as well since you canwrite arbitrarily complex SQL expressions to do filtering.
Tim,I would love to try it out but I'm not sure I will find time to build it myself.
I thought using SQL would be the only way to use this (as shown abovewith the "LIKE" operator) but I see there is a way to use regexp on SQL fields likeshown at https://github.com/tstack/lnav/issues/689#issuecomment-740253147 , yes?If so that would be really awesome!
Regards,Piotr