Can someone tell me what the best and most efficient way to answer the question "offsite referrers in last 2 hours" is on hosting rails servers? I'd like this to be something that I can run on the command line when I notice a traffic spike. And I'd like it to be smart and just parse through the last bit of the log since I just care about the last two hours.
Any suggestions?
I had been using http://www.hping.org/visitors/ on my old server, but maybe there's a better way that I don't know about.
Thanks,
Jesse