Solved

Reading Web Server Log Files

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

728 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