java 1.2 KB

12345678910111213141516171819
  1. JAVACLASS (?:[a-zA-Z$_][a-zA-Z$_0-9]*\.)*[a-zA-Z$_][a-zA-Z$_0-9]*
  2. #Space is an allowed character to match special cases like 'Native Method' or 'Unknown Source'
  3. JAVAFILE (?:[A-Za-z0-9_. -]+)
  4. #Allow special <init>, <clinit> methods
  5. JAVAMETHOD (?:(<(?:cl)?init>)|[a-zA-Z$_][a-zA-Z$_0-9]*)
  6. #Line number is optional in special cases 'Native method' or 'Unknown source'
  7. JAVASTACKTRACEPART %{SPACE}at %{JAVACLASS:class}\.%{JAVAMETHOD:method}\(%{JAVAFILE:file}(?::%{NUMBER:line})?\)
  8. # Java Logs
  9. JAVATHREAD (?:[A-Z]{2}-Processor[\d]+)
  10. JAVACLASS (?:[a-zA-Z0-9-]+\.)+[A-Za-z0-9$]+
  11. JAVAFILE (?:[A-Za-z0-9_.-]+)
  12. JAVALOGMESSAGE (.*)
  13. # MMM dd, yyyy HH:mm:ss eg: Jan 9, 2014 7:13:13 AM
  14. CATALINA_DATESTAMP %{MONTH} %{MONTHDAY}, 20%{YEAR} %{HOUR}:?%{MINUTE}(?::?%{SECOND}) (?:AM|PM)
  15. # yyyy-MM-dd HH:mm:ss,SSS ZZZ eg: 2014-01-09 17:32:25,527 -0800
  16. TOMCAT_DATESTAMP 20%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{HOUR}:?%{MINUTE}(?::?%{SECOND}) %{ISO8601_TIMEZONE}
  17. CATALINALOG %{CATALINA_DATESTAMP:timestamp} %{JAVACLASS:class} %{JAVALOGMESSAGE:logmessage}
  18. # 2014-01-09 20:03:28,269 -0800 | ERROR | com.example.service.ExampleService - something compeletely unexpected happened...
  19. TOMCATLOG %{TOMCAT_DATESTAMP:timestamp} \| %{LOGLEVEL:level} \| %{JAVACLASS:class} - %{JAVALOGMESSAGE:logmessage}