I am trying to capture the Java exception anem from a log file but I would like to exclude the "Caused by:" string using Oniguruma Regular Expressions Version 6.0.0:
^.+Exception
returns:
"Caused by: java.nio.file.NoSuchFileException"
How can i write a regular expression which captures the exception name but ignores the "Caused by: " string in front of it. This will be used in Grok Logstash