代码之家  ›  专栏  ›  技术社区  ›  bluegene

应用服务器日志

  •  0
  • bluegene  · 技术社区  · 17 年前

    您使用哪些技术/工具来分析应用程序服务器日志?

    3 回复  |  直到 17 年前
        1
  •  1
  •   Community Mohan Dere    9 年前

    如果您有大量日志,可以查看日志索引/搜索解决方案。这将使您能够实时为日志文件编制索引,并允许您通过关键字搜索所需的数据。这里有一款名为Splunk的产品可以帮助您:

    http://www.splunk.com/

    有关开放源代码版本,请参阅以下以前的stackoverflow链接:

    What commercial and open source competitors are there to Splunk?

        2
  •  0
  •   Pablojim    17 年前

    除了自定义脚本之外,还有各种各样的工具可以帮助您实现这一点。有很多非常好的付费解决方案。

    一个很好的开源选项是chainsaw,它来自log4j开发人员,并获得apache许可:

    http://logging.apache.org/chainsaw/index.html

        3
  •  0
  •   sal    17 年前

    一个错误会导致多个日志条目还是一个日志条目?对于每个错误,您是否有数千行信息和调试消息?为什么你的日志很难搜索?

    } catch (Exception e) {
      //error suppressed 
      log.error("error" + e.getMessage());
    }
    

    ...

    } catch (Exception e) {
      //error logged and passed along
      log.error("error" + e.getMessage());
      throw e;
    }
    

    ...

    } catch (Exception e) {
      //error logged and new one passed along
      log.error("error" + e.getMessage());
      throw new Exception("error" + e.getMessage());
    }