Caused by: java.sql.SQLException: Io exception: Socket closed
i want to extract "java.sql.SQLException"
Can you please do the needful.
Hi @PavanSeerapu,
You can use below rex command;
| rex "[^:]+:\s+(?<exception>[^:]+)"
Hi @PavanSeerapu,
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
Hi @PavanSeerapu,
You can use below rex command;
| rex "[^:]+:\s+(?<exception>[^:]+)"