What's In The Mysterious Log File?

  • by Zac Hewlett
  • Published on 3/7/06
  • Article views: 715

Your Ad Here

First things first, if your web hosting service provider doesn't allow you to download the raw log file, just go away. You need the raw log file to study and improve your web site performance.

What's A Log File?

Every time someone visits a page on your site, a record is made into the log file, which is saved on your server. You can find some interesting and useful information about the visitors in the log file.

Though log file formats vary, here I discuss the common elements.

Here's the contents of a single line of the log file from this site.

165.21.154.9 - - [03/Jul/2003:06:39:23 -0400] 'GET / HTTP/1.1' 200 15549 'http://www.working-at-home-business.com' 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; http://www.working-at-home-business.com)'

Letīs see what's inside one by one.

User IP Address

165.21.154.9

This is the IP address of the visitor to our site. It tells you where the visitor is from. If you do a reverse DNS look-up on this IP number at DNS Stuff the result is bbcache-9.singnet.com.sg which belongs to 'Singapore Telecommunications Pte Ltd'. You really can't go further than that to identify a particular person. Otherwise, the Internet would be too dangerous. ;)

Yeah, that visitor was myself.

Date/Time

03/Jul/2003:06:39:23

The exact time of the visit. Combined with the IP address, it enables you to follow a particular visitor sequentially from page to page on your site. More on this later.

GMT offset

0400

This is the number of hours from Greenwich Mean Time (GMT). So in our example the offset is 4 hours from GMT.

Action

'GET / HTTP/1.1'

This is either GET or POST. Except for a few CGI programs, this will typically be GET. That is, get a web page or an image that goes on that page.

This line records a command from my own browser to GET a web page from the root directory (Notice the slash '/'after GET) using a protocol named HTTP/1.1. This is the index page of our web site.

Another example.

'GET /web-promotion/index.shtml HTTP/1.1'

It records a request of this URL:
http://www.singaporewebhosting.com/web-promotion/index.shtml

Return Code

200

The next item tells whether the action was successful or not. Our example is a return code of 200, which means 'Successful Loaded'. You've probably got the dreaded 404 'File Not Found' error code when the web page you were trying to find wasn't at that URL, so these return codes aren't entirely new to you.

Other common return codes include:

400 - Bad Request 401- Authorization Required 403 - Forbidden 500 - Internal Server Error

Size

15549

This is the size of the file sent, in this case 15549 bytes.

Referrer

'http://www.working-at-home-business.com'

This tells us the web page where the visitor came from. In our example http://www.working-at-home-business.com ,which is also run by us.

You will find another extremely important piece of information here: the keywords by which your visitors found you. For example:

'http://search.yahoo.com/bin/search?p=web%20hosting%20singapore'

It tells you someone found this page at Yahoo, using the keywords 'web hosting singapore'.

By studying referrer information, you will know exactly which search engine brings your how many visitors, what they were looking for when they found your site, which links partner is more valuable...then you will know how to spend your advertising dollars wisely.

Browser/Platform

'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; http://www.working-at-home-business.com)'

The final field in the log file tells you what web browser and operating system the visitor is using.

Mozilla is a code name that indicates the browser is Netscape-compatible. In this case, the visitor was using IE6.0 on a Windows NT operating system.

Why my URL is at the end again? Just a little fun. I customized my browser a bit. You won't see it anywhere else unless I did visit your web site. ;)

Tracing A Visitor

Here comes the more interesting part. Lets take a closer look at the log file and see how a visitor passes through your site. I will be abbreviating the log file to simplify this for you.

03/Jul/2003:06:39:23 GET / 03/Jul/2003:06:39:52 GET /web-hosting/index.shtml 03/Jul/2003:06:40:36 GET /newsletter/index.shtml 03/Jul/2003:06:41:04 POST /cgi-bin/followup/auto_followup.pl 03/Jul/2003:06:41:05 GET /newsletter/subscribed.shtml 03/Jul/2003:06:41:27 GET /support/index.shtml 03/Jul/2003:06:41:38 GET /support/log.shtml

First, the visitor went to the homepage of Singapore Web Hosting, then web hosting section to find out more about web hosting package. And then looked at newsletter page and filled up the subscription form. Our CGI script processed the form and the visitor was redirected to 'thank you for subscription' page. This visitor continued reading some articles in support section.

I've skipped all the requests for images.

Why should you analyze a visitor's path? Because only when you do that, you begin to discover how a visitor uses your site: which door and from where she comes in, what interests her most, and where she leaves. Lots of small scientific observations will add up to an accurate picture of what a visitor actually does on your site.

That information is priceless if your goal is to optimize the experience, and lead your visitor to the most important parts of your site.

Zac Hewlett at Singapore Web Hosting - Visit http://www.SingaporeWebHosting.com for more web site design and promotion articles, proven online marketing tips and techniques.

Bookmark it: Digg this! Add to Del.icio.us Furl this! Add to Stumbleupon Add to Facebook

Rate this article:


More Articles

  • Easy Tips on Redesigning Your Website
    There is no doubt that a website redesign can be suitable for just about anybody. It is probably the most suitable for a company or business that is looking to improve their success. It is also suitable for a company that is looking to get the best results out of website promotion or website optimization.
  • Usability - Secret Behind A Successful Website
    Web site usability is the latest buzz in the World Wide Web. From increasing traffic to your site to increasing sales of your products or services, usability offers benefits which can help you make an impressive web presence.
  • 10 Key Things to Look for in a Good Web Designer
    Before listing the ten key things to look for in a good web designer, let's define a few terms. Even though you may encounter variants on the name - like web developer, web artist, webmaster and so forth - we're talking about an individual who, alone or with some assistance, is going to 'get you up and running.' This means more than simple design.
  • How Web Development is different from Website Designing
    Web development is the buzz word, but not many people understand the true meaning of web development. Most people associate web designing with web development, which is not only misleading but really cramps up the vision of what real web development can do.
  • Myspace Design Features - Helpful for those who have no idea of HTML
    If you are reluctant to create Myspace website because you do not have any idea about HTML. Several Myspace designer features will help you to create Myspace website even if you have no idea on HTML.
  • Advanced Web Page Optimization Techniques
    We all want to have the most attractive website that leaves a visitor wide-eyed and completely dazzled. Usually an extremely attractive website design involves lots of graphical elements, increasing the overall page size which causes the page to download slowly to the browser. This article will provide some useful tips on how to keep your website design attractive but still downloads quickly.
  • Developing a website
    If you are starting a new business there are many things you need to keep in mind, and starting a website to market your products online is one of the most important aspects of your new business. There are many reasons why should start a website that include saving money, convenience, more customers, professional image, and keeping up with the competition.
  • Stock Images - An Indispensable Tool For Designers
    When the already obtainable photographs are accredited for definite usage, then they are called Stock photography. H. Armstrong Roberts founded the 1st prominent stock photography agency way back in 1920. In the stock photography industry, the new micro-stock models of images get filed at the agencies. Stock photography, nowadays, is an extensively used application of digital media.
  • Myspace Design Features - Helpful for those who have no idea of HTML
    If you are reluctant to create Myspace website because you do not have any idea about HTML. Several Myspace designer features will help you to create Myspace website even if you have no idea on HTML.
  • What's In The Mysterious Log File?
    Every time someone visits a page on your site, a record is made into the log file, which is saved on your server. You can find some interesting and useful information about the visitors in the log file.
  • How to Straighten Out Your Tax Affairs in 2010
    Utter the word 'taxes' in front of people and you are sure hear a loud groan. Frankly, there are valid reasons behind this response: First of all, paying your taxes annually can be a financial burden, especially with the economic hard times which we are going through these days.
  • Benefits of Yoga - Redefining Life, Meditation and Exercise
    Yoga is a complete exercise for the mind, body and soul and it can give a person a change to know himself in a new light. Regular practice of Yoga has been known to reduce stress, increase concentration and also benefit one's overall health.
  • The Best Floral Perfumes
    Floral perfumes are considered the best perfumes all over the world. In fact the history of perfumes says that floral perfumes are the first perfume category of the world and thus popular also. Floral perfumes represent the essence of love and romance.
  • Coffee Gift Baskets
    Even a Coffee Bean or San Francisco Coffee outlet frequenter will not be able to master the art of appreciating true gourmet coffee unless they know the history and information about gourmet coffee.
  • Rent a car in Israel
    If you are already in Israel and wish to rent a car, then you can make a booking and tell the service to pick you up from wherever you are. The best part about car rental in Israel is that they are extremely flexible.
  • How to Straighten Out Your Tax Affairs in 2010
    Utter the word 'taxes' in front of people and you are sure hear a loud groan. Frankly, there are valid reasons behind this response: First of all, paying your taxes annually can be a financial burden, especially with the economic hard times which we are going through these days.
  • Ecommerce Checkout - Make Them Register
    The world of ecommerce is expanding daily as more and more retailers take their business to the web in the hopes of attracting a percentage of those ever finicky web shoppers. As the amount of businesses open up ecommerce shops online, the amount of web development companies is also growing, offering ecommerce solutions for even the smallest of budgets. It is important that web developers understand the dynamics of the checkout process when discussing the options with the client.
  • A History of Vintage Automobiles - From 1916 to 1924
    Before cars were around, people usually traveled distances using horse-drawn carriages. But as early as 1335 several bright minds have been trying to come up with a 'horseless carriage'.
  • 3 Rules to Follow in Your Logo Design
    When designing your own logo or getting it done by logo design professionals, ensure the following three basic rules and you will have a great and memorable corporate identity.
  • Top 10 SEO secrets
    Today everyone wants to have better search engine result pages ranks. However only one can have the rank 1. Therefore you need to optimize constantly your websites and to have an edge over others you need to do something different and unique. Following are 10 rare tips/secrets which can help you get high search engine ranks.


The opinions expressed in the above articles are solely of the authors and the owners of Point Articles may or may not agree with them. Copyright (c) 2008 Point Articles. All rights reserved.
Alabama First Time Home Buyer | Carmen Electra Aerobic Striptease | Treat Your Eczema | Phone Cards | Tshirt Design Online