Identifying Unique Users from Apache Log file

apache-2.2log-fileslogging

Can one identify unique users from apache log file with 100% surety ?.

For e.g. If 10 users are accessing the a website from a proxy server. What IP will the log file show ?. Proxy server's IP or users ?.

Also what is a better way of tracking users ?.

Log file based analysis
or
Javascript based embedding in Application ?.

Regards
Ankur Gupta

Best Answer

Can one identify unique users from apache log file with 100% surety ?

I don't think so, not unless you are having them log in with Apache authentication - in that case, their username would show up in the log file.

For e.g. If 10 users are accessing the a website from a proxy server. What IP will the log file show ?. Proxy server's IP or users ?

You would see the proxy server's IP because the users are connecting to you through the proxy. Similarly, any group of users NAT'ed on a LAN will appear to come from a single IP.

Also what is a better way of tracking users ?

You might try using cookies/sessions for that purpose.