美文网首页
日志排除线上问题

日志排除线上问题

作者: 万物皆有序和公式 | 来源:发表于2019-07-22 09:34 被阅读0次

    正序 cat catalina.out | grep 'hello' -m1 -C100 | less
    倒序 tac catalina.out | grep 'hello' -m1 -C100 | less
    grep "搜索关键字" -B100 //前100行(before
    grep "搜索关键字" -A100 //后100行(after)
    grep "搜索关键字" -C100 //上下100行(context)
    -m1 匹配第一个
    cat catalina.out | head -n 9393216 | tail -n +9391216

    线上问题各种问题解决思路
    各类日志(业务日志+框架日志+GC日志)+服务器主机监控+代码
    grep 'hello' catalina.out
    awk统计工具

    相关文章

      网友评论

          本文标题:日志排除线上问题

          本文链接:https://www.haomeiwen.com/subject/nrqilctx.html