Solved

Reading Web Server Log Files

Posted on 2002-07-17
4
143 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Object Property from VBA Module in Excel 2010 2 37
How to make an ADE file by code? 11 94
Help me. 3 60
Advice in Xamarin 21 96
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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