안녕하세요. tail -f SystemOut.log로 WAS의 로그를 모니터링 중입니다. 그런데 로그가 너무 빨리 올라가서요..
특정 문구 "ERROR" 등이 있을 때는 모니터에 그 줄을 반복한다든지 하고 싶은데 -
방법이 없을까요?
less SystemOut.log
이걸로 보시면서 /ERROR로 에러 검색하시고 F (대문자 F) 누르셔서 tail -f처럼 따라가기 하시면 해결 되시나요?
tail -f SystemOut.log | grep 'ERROR'
반복출력은 아니고.. 그냥 ERROR구문만 보는건 어떤가요?
http://fixunix.com/unix/83044-tail-color.html
http://www.vanheusden.com/multitail/examples.html
하이라이팅 및 multitail 로 보면 될 것 같네요.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
less SystemOut.log 이걸로 보시면서
less SystemOut.log
이걸로 보시면서 /ERROR로 에러 검색하시고 F (대문자 F) 누르셔서 tail -f처럼 따라가기 하시면 해결 되시나요?
tail -f SystemOut.log | grep 'ERROR'
tail -f SystemOut.log | grep 'ERROR'
반복출력은 아니고.. 그냥 ERROR구문만 보는건 어떤가요?
http://fixunix.com/unix/83044
http://fixunix.com/unix/83044-tail-color.html
http://www.vanheusden.com/multitail/examples.html
하이라이팅 및 multitail 로 보면 될 것 같네요.
댓글 달기