Long live awstats, the perl script that you put in crontab to analyze your apache logs. I have like 15 years of data from this and it's still chugging along. Not overly beautiful but it gives me the first order metrics. Traffic, referrers. No google needed.
Edit: I guess this doesn't help with the anonymous bots issue.