Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm one of the people working on a Java based website that has the apache httpd in front of it.

The content on the pages is migrating towards personalizing the content and as such just about every user will get a unique page containing a different combination of blocks with possibly even different content in the blocks.

What we want is to have logging that contains everything you see in an average apache httpd access log (all the technical details like the performance, cookies, header fields, etc.) and the functional information of what was in the html of that page (i.e. which block was shown where with which content and why was it put there).

We have per content block a string that describes it (lets call this content-string).

We came up with the following ideas to measure:

  1. Log inside the application the request id along with the content-string during the generating of this block. At a later moment we could then combine the technical measurements (from the apache access log) with the content logs. This idea was discarded when we found it meant 'no caching' of the content blocks.
  2. Log the content-string as an extra http response header and log using a standard apache feature. This means that we must wait with sending the content until we have everything because once we start sending html to the user there is no way to add an extra response header.
  3. Use a sniffer (i.e. something like what is deep inside tealeaf or oracle ruei) and have that extract the content-string from inside the html (hidden inside html comments). I haven't find anything opensourced yet.
  4. Use an apache module to extract the content and place this into the logfile.

So 1. and 2. don't work. In addition we see that having two measurement points would make joining the various datasets pretty hard to do right. For ideas 3. and 4. I've not been able to find a viable solution yet.

So I'm asking here: What is a solution that will work for a high traffic website? What other ideas are out there and what practical tools are available?

share|improve this question
    
There's nothing stopping you from making a Java file browser and/or hackup of sorts to periodically save the actual Apache log files. –  ionFish Aug 9 '12 at 1:00
    
I want to measure the real traffic done by others. –  Niels Basjes Aug 10 '12 at 4:54
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.