Hello;
Would it be possible to show a number of lines around a highlighted line?
A log file can contain errors and the statement causing the error would be a few lines above the error. For example.
Would it be possible to show a few lines before the actual error message? For example an additional configuration parameter in the highlight rule dialog: lines shown before or after the highlighted line.
Kind regards;
Niko
Mar 3, 2014 (modified Mar 3, 2014)
•
#1
![User Image](https://secure.gravatar.com/avatar/9c6eb1960100d3151b04bd29dfa49be6/?s=48&d=https://images.binaryfortress.com/General/UnknownUser1024.png)
sunk818
31 discussion posts
I'd like to vote this feature up as well. My use case is a Java error that has a long stack trace that I'd want to see.
egrep has this feature.
-A NUM, --after-context=NUM
Print NUM linesof trailing context after matchinglines.
Places a line containing -- betweencontiguous groups of
matches.
-B NUM, --before-context=NUM
Print NUM lines of leading context before matching lines.
Places a line containing -- betweencontiguous groups of
matches.
Vote added, thanks for the extra info about your usage case!
Thanks for the update!
Love the follow up.
Keep up the good work!
Kind regards.
No problem, glad to hear it. Have a great weekend!