日志文件数据挖掘 [英] Log file data mining

查看:120
本文介绍了日志文件数据挖掘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#在.net 1.1中编写应用程序。

我需要从日志文件中读取和存储数据。

日志文件有3种类型信息:

-日期

-时间

-活动

所有3个都在单独的行上。

我可以打开文件并阅读每一行。


我应该使用哪些关于收藏的建议来存储这些信息?

我需要从这些数据中报告信息。

即特定事件的发生

即证书事件之间的时间

I am writing an application in .net 1.1 using c#.
I need to read and store data from a log file.
The log file has 3 types of information:
-the date
-the time
-the event
All 3 are on seperate lines.
I can open the file and read each line.

Any suggestions on the collection I should use to store this information?
I will need to report information from this data.
i.e. the of occurances of a specific event
i.e. times between certian events

推荐答案

考虑使用您可以轻松解析或选择的数据库,XML文件或CSV文件。
Consider using a DataBase, XML file, or CSV file that you can easily parse or select from.


因此将日志文件存储到xml文件会更好你有一个例子吗?

你有一个例子吗?
So storing the log file to an xml file would be better than an arraylist?
Do you have an example?


当你说商店时,你的意思是写入磁盘,或存储在你的程序内存中。 ..这是一个很大的不同。


Frinny的建议旨在持久存储。
When you say store, do you mean write to disk, or store in your program in memory....there''s a big difference.

Frinny''s suggestions are aimed at persistent storage.


这篇关于日志文件数据挖掘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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