in reply to Generic multiline grepping
Under the assumption that your log file has a hierarchical structure as indicated by the opening braces (there are corresponding closing ones as well?) I find the matching approach dangerous. You can easily match across several hierarchies of braces opening and match across different log file entries.
Instead you should parse the log file into a hierarchical structure and then evaluate the entries. Or as a minimum include or forbid opening and closing braces in your regex.
|
|---|