Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

use session id instead of client ip for visits

Reply to Post Add a New Topic
UserPost

4:26 pm
January 14, 2009


ltalanki

Guest

Hi,
 
I want to use session id in the cookie part of the log file instead of client ip for extracting the visits. Can I do that in Awstats? 

I am attaching lines of my log. Can anyone tell me where to make changes to the awstats.pl file. 
 
1. I think instead of using the IP we can use the session Id in the .pl file to get the users on the server?
 
2. Can I also get list of users whose duration is more than 1hr instead of all the unique visitors?
 
 
example LOG file lines: 
 

#Fields: date time s-sitename s-compute
rname s-ip cs-method cs-uri-stem cs-uri
-query s-port cs-username c-ip cs-versi
on cs(User-Agent) cs(Cookie) cs(Referer
) cs-host sc-status sc-substatus sc-win
32-status sc-bytes cs-bytes time-taken
 

2006-07-22 02:02:56 86400635 SAVANNA 19
2.22.0.27 GET /Default.aspx – 80 – 192.
168.0.2 HTTP/1.1 Mozilla/4.0+(compatibl
e;+MSIE+6.0;+Windows+NT+5.0) BIGipServe
rDHSR=45100.20480.0000;+ASP.NET_Session
Id=mqiyrb45k5mkn5552n1i0h55;+DHSRTestCO
OKIE=DHSRTestCOOKIE;+.DHSR=E7B6F31A84FE
1F8E80D8B20F985A5C574AE4945715BC5DB9C43
3A8994CFC163CCAB453A2EAAE06038EFE848D72
7DFEC7DC7C1385FB7946A6AC57F62490EECC8E2
08A046A31BB2621 DHSR.com 200 0 0 1058 5
33 0
 

2006-07-22 02:02:56 86400635 SAVANNA 19
2.22.0.27 GET /images/arrow_L.gif – 80
- 192.168.0.2 HTTP/1.1 Mozilla/4.0+(com
patible;+MSIE+6.0;+Windows+NT+5.0) BIGi
pServerDHSR=45100.20480.0000;+ASP.NET_S
essionId=mqiyrb45k5mkn5552n1i0h55;+DHSR
TestCOOKIE=DHSRTestCOOKIE;+.DHSR=E7B6F3
1A84FE1F8E80D8B20F985A5C574AE4945715BC5
DB9C433A8994CFC163CCAB453A2EAAE06038EFE
848D727DFEC7DC7C1385FB7946A6AC57F62490E
ECC8E208A046A31BB2621 DHSR.com 200 0 0
513 551 0

Thanks,

2:34 am
January 15, 2009


Jean-Luc

Admin

posts 1125

Hi,

There is no need to edit awstats.pl  in order to use the session ID instead of the client IP. I would use the cs(Cookie)  field as %host  in the AWStats LogFormat definition. If the complete cookie field is not convenient, you can filter the log file with a program that will extract the session ID before you pass it to awstats.pl .

Regarding your second question, I do not know of any easy way to identify the users who visit the site during more than one hour. This would demand serious changes in the AWStats source code.

10:01 am
January 15, 2009


ltalanki

Guest

Thanks for the info.

Lee

Reply to Post

Reply to Topic:
use session id instead of client ip for visits

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 2
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)