I'm looking for something pretty similar to this.
The logs look like this:
[09:44:22] [main] ERROR [url/location] - A ONE LINE ERROR [09:44:22] [main] ERROR [url/location] - Another ERROR [09:44:22] [main] SOMETHING DIFFERENT [09:44:22] [main] SOMETHING DIFFERENT AGAIN [09:44:22] [main] WARN [url/location] - ANOTHER ONE LINE WARN
Line after line with no empty lines between them, though occasionally there are indents when further info is available for a specific piece.
I want to be able to pull every line that includes
ERROR (ideally as a script that can pull
WARN, etc.) and display them according to a parameter. It'll make sifting through logs for fails and whatnot much easier.