Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search with context #186

Open
tomasaschan opened this issue Jan 4, 2018 · 2 comments
Open

Search with context #186

tomasaschan opened this issue Jan 4, 2018 · 2 comments

Comments

@tomasaschan
Copy link

When searching in logs, it is often valuable to show not only the line that matches the query, but also a few lines before and/or after it (much like grep can do).

Is this already possible? If so, how? If not, consider this a feature request :)

@RolandPheasant
Copy link
Owner

You can see the context by checking the show inline checkbox

@tomasaschan
Copy link
Author

@RolandPheasant I know, and that's nifty :) But it doesn't really solve my problem, though, since it only shows one item at a time.

My use case here was trying to figure out if all the exceptions I saw in the log had the same trace events leading up to them, and for that I'd want to be able to list all lines matching exception, and one or two lines before them. (Then, I'd probably go on to see if that event sequence always caused an exception, in which case I'd search for foo-event-X and include one line after each match, to see if that line is a thrown exception.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants