Example #1
0
 /**
  * 최근 x분동안의 ERROR log 카운트
  *
  * @return
  */
 public PipeShellCommand getTomcatLogPipeShellCommand() {
   return PipeShellCommand.getBuilder()
       .addShellCommand(Tomcat.sed(daemonMemorizer.restore(DaemonProperties.TOMCAT_LOG_PATH)))
       .addShellCommand(Tomcat.grep())
       .addShellCommand(Tomcat.wc())
       .build();
 }
Example #2
0
 /**
  * 최근 x분동안의 4xx, 5xx 에러 건수 카운트
  *
  * @return
  */
 public PipeShellCommand getAccessSSLLogPipeShellCommand() {
   return PipeShellCommand.getBuilder()
       .addShellCommand(Apache.sed(daemonMemorizer.restore(DaemonProperties.APACHE_SSL_LOG_PATH)))
       .addShellCommand(Apache.awk())
       .addShellCommand(Apache.grep())
       .addShellCommand(Apache.wc())
       .build();
 }