如何从日志文件中提取字段? [英] How to extract the fields from a log file?

查看:196
本文介绍了如何从日志文件中提取字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我对我的项目日志分析有疑问。日志分析意味着,开发一个新工具来分析日志。日志文件有因此,第一步从目录中浏览alog文件并提取日志文件的字段。如何从日志文件中提取字段?任何帮助plz ...

Hello,

I have a doubt about my project "log analysis".Log Analysis means, developing a new tool for analyze the logs.The log files have different formats.So, the first step browse alog file from the directory and extract the fields of log file.How to extract the fields from a log file? Any help plz...

推荐答案

取决于什么样的日志文件。什么样的字段等



如果它像IIS日志或事件日志那么使用类似 Log Parser [ ^ ]。优秀的工具。



有许多工具,如 Log Parser Lizard [ ^ ]已经在那里阅读各种类型的日志文件,如果您不想使用LogParser等命令行工具。



希望有所帮助。
Depends on what kind of log file. What kind of fields etc.

If it is like an IIS log or event log then use something like Log Parser[^]. Excellent tool.

There are many tools like Log Parser Lizard[^] that is already there to read various types of log files if you do not want to use command line tools like LogParser.

Hope it helps.


这篇关于如何从日志文件中提取字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆