Solved

Reading Web Server Log Files

Posted on 2002-07-17
4
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:xSinbad
ID: 7161277
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
ID: 7161838
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
ID: 7166397
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
ID: 7247483
thanks for doing what you could
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

739 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