A year ago I figured out separate, gluten-based problems by using iCal in this manner: log meals in blue, symptoms in red, see what I've eaten ~24 hours before a red entry.
Right now this is a nicer and more focused version of iCal or a spreadsheet for this purpose, but we're planning on adding some correlation analysis similar to http://skygazerlabs.com/wp/