阅读背景:

用于计算日志文件中错误发生的工具或语言

来源:互联网 

I am trying to determine the best way to parse a log file and get a count of all of the errors in it by type. Currently, I open the log in a text editor, strip out the date and thread ID, then sort the file. This puts all errors together by type, which I can then count (using the count function in the editor, not manually). I am looking for a way to do this automatically, and possibly use this as an opportunity to learn a new language (I know minimal Perl and Ruby which seem like they may work for this task). The log file looks like (the items in angle brackets are variable for each line, while the pipes are actual characters in the log):I am trying to determine the best way to parse




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: