[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Reading Web Server Log Files

Posted on 2002-07-17
4
Medium Priority
?
148 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 200 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

Technology Partners: 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

650 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