title: Stacktrace aware grep
body: <p>Are there any grep -like Unix/Linux command line tools that understand Java stacktraces in log files that are printed by log4j or logback? The tool should understand that a stacktrace consists of several lines.</p>
  
  <p>Typical use case would be to filter out certain exceptions and corresponding stacktraces when viewing logs that are stored to files.</p>