Google: awstats,
webalizer,
or CGI scripts that can do that for you.