Solved

Reading Web Server Log Files

Posted on 2002-07-17
4
139 Views
Last Modified: 2010-05-02
This is not really a VB question, but I am putting it here because I think the experts here might be able to answer this relatively urgent question I have.

I need to write a program for reading data out of some web server log files.  The data needs to be loaded into a database.  The log files are produced by banner management software on the web server.  

My biggest problem:  I cannot figure out how to even read the log files.  I have downloaded them to my PC, but when I try reading them with Notepad or Excel, all I get is gibberish with some text mixed in.

The log files can be downloaded from the following links:

http://www.danallen.com/scratch/2002-05-17.tot
http://www.danallen.com/scratch/2002-05-17.sum

0
Comment
Question by:Danimal
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
These files appear to be binary thats why you cant read them in Notepad. Now to make a program to read them is not so hard depending on what you want to get out of them, what do you need from them, they seem to contain this sort of thing "3clockinn.3clockinn-banquet.3clockinn-search"


Cheers
Marcus
0
 
LVL 1

Author Comment

by:Danimal
Comment Utility
xSinbad, I don't understand what the program needs to do or to even how to start writing it.   How do I program somthing to translate the binary into something I can read?

Supposedly, these files are logs of web activity.  There are supposedly records in these log files from which I can extract the following fields:  RegionID, CampaignID, AdvertiserID, BannerID, ImpressionDate, Impression Count, and Click Count.

I looked through the files with notepad...between all the binary gibberish, I did not see information that appeared to correspond to what I am looking for.

Do you see anything different?
0
 
LVL 6

Accepted Solution

by:
xSinbad earned 50 total points
Comment Utility
Danimal I did not see much more in there either, I use a program called 'Hex Workshop'to read binary files you may wish to get hold of something like that as well. I have not had a lott of time to look at this yet but I have noticed that the records apear to be a 112 charactors in length which should make it easier to extract.

This is what I see;

#...........................................stoweflakelist.stoweflake-text.stoweflake-text......................$

and this

........0....q..........................................cvtcoc.cvtcoc-bjvan.home-1.*....4...'1..........................................vsaclist.vsac100.vsaclist.*..........{



This is how to read a Binary file in VB;


Dim nFile As Integer
nFile = FreeFile
Open "c:\temp\myfile.exe" For Binary As #nFile
    Text1.Text = Space(LOF(nFile))
    Get #nFile, ,Text1.Text
Close #nFile



I will look at it some more as soon as I get time.

Cheers
Marcus



0
 
LVL 1

Author Comment

by:Danimal
Comment Utility
thanks for doing what you could
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now