I am trying to extract different error messages out of raw server log events. Below are the examples of different types of errors i am trying to extract.
ClassNotFoundException
java.io.IOException: No space left on device
Caused by: java.net.SocketException: Connection reset
Error - ORA-00942: table or view does not exist
java.lang.OutOfMemoryError: GC overhead limit exceeded
db connection hold time exceeds threshold [60000] ms
Caused by: java.sql.SQLRecoverableException: IO Error
java.lang.OutOfMemoryError
java.sql.SQLRecoverableException: Closed Connection
No ManagedConnections available within
Regex for ClassNotFoundException is something I got working. But I am having difficulty with others since they are having white space,colons,periods etc and I am no expert with regular expressions :(.
Any help/suggestions answers will be greatly appreciated.
Regards,
Amith
... View more