J
Jmc
Hi
I'm trying to build a log viewer, its going to be part of a
contentmanagement system and needs some extra features that commersial
logviewers don´t have.
The log files (IIS log) are 200-500mb large and the problem is that it
taket to long to parse them.
I use textreader.readline and split on spases, and then I use that
infrormation.
When looping through the file (without actually doing anything) it
takes about 2-3 seconds and thats the time that a commercial log parser
takes to parse the log.
The commercial log parser also stores the data in a database, I tried
that just for fun, I used a access database and the procedure took
about 10 minutes, not to good.
My question is Can I speed up this?
I would like to have a dataset containing a number of tables,
containing Unique Useragents, ip adresses, visited pages (parsed from
querystring), visitors per hour and so on.
And I would like to do this in the time the commercial application did
it, lets be generous under 10 seconds.
Can it even be done using c#?
How would you guyes solve it?
Thanks
/Jimmy
I'm trying to build a log viewer, its going to be part of a
contentmanagement system and needs some extra features that commersial
logviewers don´t have.
The log files (IIS log) are 200-500mb large and the problem is that it
taket to long to parse them.
I use textreader.readline and split on spases, and then I use that
infrormation.
When looping through the file (without actually doing anything) it
takes about 2-3 seconds and thats the time that a commercial log parser
takes to parse the log.
The commercial log parser also stores the data in a database, I tried
that just for fun, I used a access database and the procedure took
about 10 minutes, not to good.
My question is Can I speed up this?
I would like to have a dataset containing a number of tables,
containing Unique Useragents, ip adresses, visited pages (parsed from
querystring), visitors per hour and so on.
And I would like to do this in the time the commercial application did
it, lets be generous under 10 seconds.
Can it even be done using c#?
How would you guyes solve it?
Thanks
/Jimmy