I wish I had this a while ago. Log Parser allows you to run SQL like queries against your IIS log files. Check it out here.