Show entries before/after filtered entries

If you think LogMX needs a new useful feature!
Post Reply
Ian Gralinski
Posts: 18
Joined: Fri May 20, 2016 12:17 am
Contact:

Show entries before/after filtered entries

Post by Ian Gralinski » Fri Jul 08, 2016 5:06 am

It is sometimes useful to be able to see a few entries before or after each entry that matches the filter criteria. For example, suppose there are log entries like the following:

Code: Select all

a
b
c
d
e
If I filter the results with "Message contains" = c, I get:

Code: Select all

c
Could a feature be added to be able to specify how many additional entries to display before/after each entry that matches the filter, so that if I specified "Message contains" = c, show 1 line before, and 2 lines after, the filtered result would look like:

Code: Select all

b
c
d
e

admin
Site Admin
Posts: 418
Joined: Sun Dec 17, 2006 10:30 pm

Re: Show entries before/after filtered entries

Post by admin » Tue Jul 12, 2016 1:20 am

Hello,

Thank you for this idea that looks good to me (similar to the "context" feature provided by "grep" if I understand correctly).
Yet, how would you like to distinguish the log entries that actually match the filter from the entries that are before/after these entries? We may use colors, but colors are already used by "Mark" and "Find" features, and the log entry should also be colored with the associated log level color.

Xavier

Ian Gralinski
Posts: 18
Joined: Fri May 20, 2016 12:17 am
Contact:

Re: Show entries before/after filtered entries

Post by Ian Gralinski » Wed Jul 13, 2016 8:40 am

I can think of a few options, though I'm not sure how well each of these would work in practice:
  • Making the entries that do not match the filter a "lighter" colour than those that do match the filter.
  • Adjusting the opacity of non-matching entries.
  • Defining a new colour for the non-matching entries.

Ian Gralinski
Posts: 18
Joined: Fri May 20, 2016 12:17 am
Contact:

Re: Show entries before/after filtered entries

Post by Ian Gralinski » Wed May 24, 2017 6:24 am

Some other ideas:
  • Display a notice/colour in the filter bar to indicate that additional lines not matching the filter are being shown. This way the log entries displayed do not need to be modified.
  • Add another column to the log entries table and indicate in there which entries match the filter and which entries do not.

admin
Site Admin
Posts: 418
Joined: Sun Dec 17, 2006 10:30 pm

Re: Show entries before/after filtered entries

Post by admin » Wed May 24, 2017 11:59 pm

Thanks for these ideas (I like the first one because when you think of it, that's how "grep" context works: no difference between context lines and actually matching lines)

Post Reply