나는 Stackoverflow를 처음 사용합니다. 친절하게도 철저히 조사 할 숙제를하지 않으면 나를 용서해주십시오. 바람둥이 로컬 호스트 로그 및 catalina.out 파일에서 텍스트를 구문 분석하는 데 문제가 있습니다. 우리는이 파일 중 하나에서 경고가 심각하다는 것을 모두 알고 있습니다. 난 심각하게 경고를 구문 분석하고 내 이메일로 메일을 보내는 데 도움이 될 스크립트 또는 무료 소프트웨어가 필요합니다. 예를 들어Tomcat 로그를 구문 분석 할 수있는 스크립트 또는 다른 방법이 있습니까?
:
SEVERE: Error listenerStart
6 Jul, 2012 2:04:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [**********] startup failed due to previous errors
6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [**************] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
6 Jul, 2012 2:04:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive server.war
6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
스크립트는에서 구문 분석해야한다 "SEVERE : ...."다음 "SEVERE : ...."까지 텍스트 또는 파일의 끝. 스크립트는 쉘 또는 파이썬 또는 루비 형식 일 수 있습니다.
당신이 당신의 연구를 제대로하지 않았다는 것을 알면, 실제로 변명의 여지가 없습니다. –
스크립트는 아니지만 해당 항목을 참조하십시오. http://serverfault.com/questions/63297/good-free-tomcat-log-analyser http://serverfault.com/questions/96720/open-source- 바람둥이 로그 뷰어 – Pawel