是否有“通用日志文件分析器/编辑器”?
我这样问是因为我厌倦了每天像这样观看制表符分隔的日志文件:
164.56.95.119:18260 24986 2011-03-13 16:10:02.532 -5 JobQueueReceiver JSM 6019 4 Audit.RTUsage.JSM removed com.cognos.jsmcommon.tse.TaskRecord$IDDateStruct@11d16ae from the task queue
164.56.95.119:18260 24986 2011-03-13 16:10:02.545 -5 JobQueueReceiver MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.tse.BiBusRunContext:ctor:
0A808213019C787C012B0AEE617391740012eb0d6f1c0 7288162
164.56.95.119:18260 24986 2011-03-13 16:10:02.546 -5 StateMapProcessor MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.tse.commands.TaskRunStartedCmd:doAction - 0A808213019C787C012B0AEE61739174
164.56.95.119:18260 24986 2011-03-13 16:10:02.501 -5 JobQueueReceiver MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.queue.JobQueueReceiver:Count ready tasks = 1
我想知道你们中是否有人如此幸运地拥有以下功能:
能够动态“过滤”不必要的部分。即,一旦日志文件被加载,您不必提取其中的一小部分来专注于该部分;您只需过滤其内容,一旦完成,所有内容都可以返回以再次启动另一个过滤过程。
当前行突出显示。这只是因为长行会换行到几行,因此很难判断它在哪里结束
结合基于正则表达式的搜索来突出显示匹配项。我相信很多编辑器都支持这一点
我最后的手段是使用 Perl 或 linux 命令来让我的生活更轻松,但我真诚地希望现在有一些可用的日志分析器/编辑器来节省时间:)
感谢所有建议提前。
I am asking because I am sick of watching tab separated log files everyday like this:
164.56.95.119:18260 24986 2011-03-13 16:10:02.532 -5 JobQueueReceiver JSM 6019 4 Audit.RTUsage.JSM removed com.cognos.jsmcommon.tse.TaskRecord$IDDateStruct@11d16ae from the task queue
164.56.95.119:18260 24986 2011-03-13 16:10:02.545 -5 JobQueueReceiver MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.tse.BiBusRunContext:ctor:
0A808213019C787C012B0AEE617391740012eb0d6f1c0 7288162
164.56.95.119:18260 24986 2011-03-13 16:10:02.546 -5 StateMapProcessor MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.tse.commands.TaskRunStartedCmd:doAction - 0A808213019C787C012B0AEE61739174
164.56.95.119:18260 24986 2011-03-13 16:10:02.501 -5 JobQueueReceiver MS 6014 4 Audit.RTUsage.ms.MS com.cognos.monitor.queue.JobQueueReceiver:Count ready tasks = 1
I'd like to know if any one of you have ever be so fortunately to have the following features:
Able to "filter" unnecessary parts dynamically. i.e., once log file is loaded, you don't have to extract a fraction of it just to focus on that part; you would simply filter on its content and once it is done, everything could be brought back to start another filter process again.
current line highlight. This simply because a long line wraps to several, so it is hard to tell where it ends
highlight matches in combination of regular-expression based search. I believe lots of editor support this anyway
My last resort is to use Perl or linux commands to make my life easier, but I sincerely hope there are some able log analyzer/editor available right now to save the time :)
Thanks for all the suggestions in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以将日志作为 CSV 文件导入到 Microsoft Excel 或 Open Office 中。
我认为,这两个程序可以满足您所需的一切。
You may import the logs as CSV files into Microsoft Excel, or into Open Office.
I think, this two programs can do everything you need.
看看 XpoLog http://www.xpolog.com 我认为它提供了满足您需求的所需功能。
Take a look at XpoLog at http://www.xpolog.com I think it provides the required functionality for your needs.
对于 Windows,您可以使用 baretail 它非常轻巧,易于配置并且运行良好。
我不知道它是否具有您提到的所有功能,但至少它突出显示正则表达式匹配并且您可以分配颜色。
我还没有找到其他系统的类似替代方案(例如 Mac)。
For Windows, you can use baretail it's very light, easy to configure and works very well.
I don't know if it has all the features you mention but at least it highlights regex matches and you can assign colors.
I haven't found a comparable alternative for other systems yet (E.g. Mac).