We currently have searches to filter out log messages with log level ERROR.
We want to take it one step further and build statistics based on the actual root cause.
The problem is that the root cause is almost always hidden in a long stack trace.
Example stack trace:
Exception in thread "main" java.lang.IllegalStateException: A book has a null property
at com.example.myproject.Bootstrap.main(Bootstrap.java:14) Caused by: java.lang.NullPointerException
... 1 more
And we are looking for: "java.lang.NullPointerException", and our stack traces can be very long...
Is there some way we can search for it in a good way? Or is there another way to handle this problem?