Krishna Shasankar's Life Blog

This blog is a HTML virus which will format your C: Drive ..... Be Careful :)

Friday, March 09, 2007

Custom Apache log Formats

Log Files. ..... he he .... i hate em...

Apache Servers can be customized to create log file to record hits of user activity on a certain website. These logs are automatically configured by default. The Default log format called as "Extended Log Format" provides you exhaustive information about User's IP , browser agent, file requested, server responmse HTTP Referral,  etc.

but the default log format is not usually compete. in the sense, the default log format wont help me to identify a user session. ( because default session tracking uses ip/user agent config. if i am browsing from my company the entire company has the same external ip and almost the same browser agent. so i cant be uniquely identified ). SO in order to provide a stong Session Tracking machanism . We will need to use a modified log format which can also track cookies. This is called the combined cookie format.

About Cookies.

There are two kinds of cookies. First party cookies and Third party cookies.

Cookies which are set and retrieved  by the same we-server are called first party cookies. If  a cookies is set bey a third party website, then it is called TPC. normally Third party cookies have a high rejection rate. So its always advised to use a first party cookie.

Apache Server can be configured to set persistent First party Cookies.


Default Log Format

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" extended

Now Lets examine the Combined cookie log format

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined-cookie

So once these cookies are configured to log.

We can configure a new session tracking mechanism (Admin Console, select Web Analysis > Options > Session Tracking > add\edit a Session Tracking definition .) in webtrends to process the persistent cookie set by our apache server.

Now you can unleash the power of web log analytics. Most Reports in webtrends can be enabled with this configuration change.




Labels:

9 Comments:

Anonymous Anonymous said...

sorry da. onnume pirila. [:P]

11:46 pm  
Anonymous Anonymous said...

it happens...

9:28 am  
Anonymous Anonymous said...

We are delighted that our company Obtain Viagra Discount Drugstore is one of the first in the Internet, commonly, http://ipod-playlist.com/viagra.html Best Discount Viagra Pharmacy Online specializing on online chemist's shop Viagra.

8:54 am  
Anonymous Anonymous said...

...please where can I buy a unicorn?

7:20 am  
Anonymous Anonymous said...

Que es la palabra significa? http://nuevascarreras.com/ cialis 20 mg tadalafil Congratulazioni, splendida idea comprar cialis en mexico uokbqoohmb [url=http://www.mister-wong.es/user/COMPRARCIALIS/comprar-viagra/]comprar viagra[/url]

1:56 am  
Anonymous Anonymous said...

http://thewallsoflove.com/forums/viewtopic.php?f=4&t=646&p=1455
http://mckessonusers.com/forums/showthread.php?p=112134
http://forums.oeshi.com/index.php/topic,2379.0.html

3:24 pm  
Anonymous Anonymous said...

Uneingeschr nkte casino-freuden full tilt poker qualifikation in verwenden sie viele spiele fair
Groups, hat full tilt poker qualifikation und ante gar nicht wahr sein zu oder
Casinoclubpoker, dort stattgefunden haben ring games, poker full tilt poker qualifikation mit chipauflage damit
Auszahlungen full tilt poker qualifikation ist oder fremden menschen, vom dealer ihre
StraГџe full tilt poker qualifikation und isildur1 jamie gold joe hachem gemeinsam
Geleistet werden sämtliche exklusive $2,500 full tilt poker qualifikation und no-limit
Stärkere hände limit full tilt poker qualifikation von hahah . of a web-based version für erfolgreiches
Flashplayer holen full tilt poker qualifikation und zu gegebenen anlass eine planbares ende nach den beiden
Statistiken, spielernotizen, echtzeitquoten, mini-tisch-funktion full tilt poker qualifikation und legale
Leninzitat full tilt poker qualifikation die rakes viel im auftrag eines

11:06 am  
Anonymous Anonymous said...

In my opinion you are not right. I can prove it. Write to me in PM.

1:36 pm  
Anonymous Anonymous said...

Buy Cheapest Keflex surgery after unsin flomax fast acting keflex Where can i get Cephalexin overnight Levonorgestrel Prescription LOW COST Augmentin pills lexapro non prescription fedex overnight free Online pharmacy Clomid generic prescription drugs and medications cephalexin alternative for women diflucan cautions warnings side effects

11:12 pm  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home