Caused by: java.sql.SQLException: Io exception: Socket closed
i want to extract "java.sql.SQLException"
Can you please do the needful.
You can use below rex command;
| rex "[^:]+:\s+(?<exception>[^:]+)"
View solution in original post
This regex does not work, because there is a problem with double-quotes and there is no numeric value. Please try below;
| rex "java.sql.SQLException:\s+(?<SQLexception>.*)"
| rex field=_raw "Caused by"\:\s+(?P<SQLexception>\d+)
I tried this but didn't work