Tomcat Console Logs
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | Oct 25, 2016 9:51:56 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | SEVERE: Servlet.service() for servlet [springmvc] in context with path [/hac] threw exception [Filter execution threw an exception] with root cause
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | java.lang.IllegalAccessError:
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener$$dtt.dt_23_onApplicationEvent_28(Unknown Source)
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener.onApplicationEvent(AuthSuccessListener.java:34)
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener.onApplicationEvent(AuthSuccessListener.java:1)
I need help writing a regex to determine the start of a new log event. Normally, this regex '^[^\s]' would work. But I am trying to combine Java stacktrace logs into one log event (highlighted). So far I have this regex '[a-zA-Z]{3,}.*\d{4}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s\|\s+at|Exception:|Caused by:' which would match the body of a typical Java stacktrace logs. I don't know how or if it is possible to say to match everything except for the regex pattern. Please help.
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | Oct 25, 2016 9:51:56 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | SEVERE: Servlet.service() for servlet [springmvc] in context with path [/hac] threw exception [Filter execution threw an exception] with root cause
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | java.lang.IllegalAccessError:
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener$$dtt.dt_23_onApplicationEvent_28(Unknown Source)
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener.onApplicationEvent(AuthSuccessListener.java:34)
INFO | jvm 1 | main | 2016/10/25 21:51:57.009 | at de.hybris.platform.oauth2.AuthSuccessListener.onApplicationEvent(AuthSuccessListener.java:1)
I need help writing a regex to determine the start of a new log event. Normally, this regex '^[^\s]' would work. But I am trying to combine Java stacktrace logs into one log event (highlighted). So far I have this regex '[a-zA-Z]{3,}.*\d{4}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s\|\s+at|Exception:|Caused by:' which would match the body of a typical Java stacktrace logs. I don't know how or if it is possible to say to match everything except for the regex pattern. Please help.